Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
edbb0915
Kaydet (Commit)
edbb0915
authored
Haz 11, 2010
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5753: mention PySys_SetArgvEx() in 2.6 What's News
üst
bc3376f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
1 deletion
+37
-1
2.6.rst
Doc/whatsnew/2.6.rst
+37
-1
No files found.
Doc/whatsnew/2.6.rst
Dosyayı görüntüle @
edbb0915
...
@@ -1788,7 +1788,7 @@ changes, or look through the Subversion logs for all the details.
...
@@ -1788,7 +1788,7 @@ changes, or look through the Subversion logs for all the details.
were
applied
.
(
Maintained
by
Josiah
Carlson
;
see
:
issue
:`
1736190
`
for
were
applied
.
(
Maintained
by
Josiah
Carlson
;
see
:
issue
:`
1736190
`
for
one
patch
.)
one
patch
.)
*
The
:
mod
:`
bsddb
`
module
also
has
a
new
maintainer
,
Jes
ú
s
Cea
,
and
the
package
*
The
:
mod
:`
bsddb
`
module
also
has
a
new
maintainer
,
Jes
ú
s
Cea
Avion
,
and
the
package
is
now
available
as
a
standalone
package
.
The
web
page
for
the
package
is
is
now
available
as
a
standalone
package
.
The
web
page
for
the
package
is
`
www
.
jcea
.
es
/
programacion
/
pybsddb
.
htm
`
www
.
jcea
.
es
/
programacion
/
pybsddb
.
htm
<
http
://
www
.
jcea
.
es
/
programacion
/
pybsddb
.
htm
>`
__
.
<
http
://
www
.
jcea
.
es
/
programacion
/
pybsddb
.
htm
>`
__
.
...
@@ -2992,6 +2992,33 @@ Changes to Python's build process and to the C API include:
...
@@ -2992,6 +2992,33 @@ Changes to Python's build process and to the C API include:
architectures
(
x86
,
PowerPC
),
64
-
bit
(
x86
-
64
and
PPC
-
64
),
or
both
.
architectures
(
x86
,
PowerPC
),
64
-
bit
(
x86
-
64
and
PPC
-
64
),
or
both
.
(
Contributed
by
Ronald
Oussoren
.)
(
Contributed
by
Ronald
Oussoren
.)
*
A
new
function
added
in
Python
2.6.6
,
:
cfunc
:`
PySys_SetArgvEx
`,
sets
the
value
of
``
sys
.
argv
``
and
can
optionally
update
``
sys
.
path
``
to
include
the
directory
containing
the
script
named
by
``
sys
.
argv
[
0
]``
depending
on
the
value
of
an
*
updatepath
*
parameter
.
This
function
was
added
to
close
a
security
hole
for
applications
that
embed
Python
.
The
old
function
,
:
cfunc
:`
PySys_SetArgv
`,
would
always
update
``
sys
.
path
``,
and
sometimes
it
would
add
the
current
directory
.
This
meant
that
,
if
you
ran
an
application
embedding
Python
in
a
directory
controlled
by
someone
else
,
attackers
could
put
a
Trojan
-
horse
module
in
the
directory
(
say
,
a
file
named
:
file
:`
os
.
py
`)
that
your
application
would
then
import
and
run
.
If
you
maintain
a
C
/
C
++
application
that
embeds
Python
,
check
whether
you
're calling :cfunc:`PySys_SetArgv` and carefully consider
whether the application should be using :cfunc:`PySys_SetArgvEx`
with *updatepath* set to false. Note that using this function will
break compatibility with Python versions 2.6.5 and earlier; if you
have to continue working with earlier versions, you can leave
the call to :cfunc:`PySys_SetArgv` alone and call
``PyRun_SimpleString("sys.path.pop(0)\n")`` afterwards to discard
the first ``sys.path`` component.
Security issue reported as `CVE-2008-5983
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_;
discussed in :issue:`5753`, and fixed by Antoine Pitrou.
* The BerkeleyDB module now has a C API object, available as
* The BerkeleyDB module now has a C API object, available as
``bsddb.db.api``. This object can be used by other C extensions
``bsddb.db.api``. This object can be used by other C extensions
that wish to use the :mod:`bsddb` module for their own purposes.
that wish to use the :mod:`bsddb` module for their own purposes.
...
@@ -3294,6 +3321,15 @@ that may require changes to your code:
...
@@ -3294,6 +3321,15 @@ that may require changes to your code:
scoping
rules
,
also
cause
warnings
because
such
comparisons
are
forbidden
scoping
rules
,
also
cause
warnings
because
such
comparisons
are
forbidden
entirely
in
3.0
.
entirely
in
3.0
.
For
applications
that
embed
Python
:
*
The
:
cfunc
:`
PySys_SetArgvEx
`
function
was
added
in
Python
2.6.6
,
letting
applications
close
a
security
hole
when
the
existing
:
cfunc
:`
PySys_SetArgv
`
function
was
used
.
Check
whether
you
're
calling :cfunc:`PySys_SetArgv` and carefully consider whether the
application should be using :cfunc:`PySys_SetArgvEx` with
*updatepath* set to false.
.. ======================================================================
.. ======================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment