Mark Dickinson
a13b109bc0
Issue 13496: Fix bisect.bisect overflow bug for large collections.
14 years ago
Benjamin Peterson
e900096dc4
prevent writing to stderr from messing up the exception state ( closes #14474 )
14 years ago
Antoine Pitrou
6211b88161
Issue #14437 : Fix building the _io module under Cygwin.
14 years ago
Stefan Krah
0f6ce8d9df
Issue #3367 : NULL-terminate argv[] copies to prevent an invalid access
in sys_update_path().
14 years ago
Ross Lagerwall
71faefc37e
Issue #14359 : Only use O_CLOEXEC in _posixmodule.c if it is defined.
Based on patch from Hervé Coatanhay.
14 years ago
Gregory P. Smith
c73f6dab11
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.
14 years ago
Georg Brandl
a5d729a7f7
Transplant from main repo d6c197edd99b: Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
14 years ago
Gregory P. Smith
2522771e47
Fixes Issue 14234: fix for the previous commit, keep compilation when
using --with-system-expat working when the system expat does not have
salted hash support.
14 years ago
Gregory P. Smith
8e91cf6a5e
Fixes issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
14 years ago
Benjamin Peterson
2354a7593f
fix indentation
14 years ago
Benjamin Peterson
e48944b69c
keep the buffer object around while we're using it ( closes #14212 )
14 years ago
Stefan Krah
2201ecbbfc
Issue #14125 : backport refleak fix (d4adbf908983).
14 years ago
Éric Araujo
fab976624d
Fix typo in “seperat{or,ion}”
14 years ago
Georg Brandl
c9a42070a6
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
14 years ago
Antoine Pitrou
86838b02f0
Fix test failure in test_cmd_line by initializing the hash secret at the earliest point.
14 years ago
Benjamin Peterson
69e9727657
ensure no one tries to hash things before the random seed is found
14 years ago
Petri Lehtinen
4fe85abab9
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033 .
14 years ago
Georg Brandl
2daf6ae249
Issue #13703 : add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.
The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
14 years ago
Antoine Pitrou
2f5a163dfc
Issue #13014 : Fix a possible reference leak in SSLSocket.getpeercert().
14 years ago
Antoine Pitrou
f5f1fe0cb5
Issue #13015 : Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.
14 years ago
Petri Lehtinen
4a84f58143
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
15 years ago
Charles-François Natali
6d0d24e359
Issue #13817 : After fork(), reinit the ad-hoc TLS implementation earlier to fix
a random deadlock when fork() is called in a multithreaded process in debug
mode, and make PyOS_AfterFork() more robust.
14 years ago
Petri Lehtinen
023fe334bb
sqlite3: Handle strings with embedded zeros correctly
Closes #13676 .
14 years ago
Gregory P. Smith
ab32066e65
Fix zip_import.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those) and how they are computed. Py_ssize_t is used for
actual file offsets so that files greater than 2gigs could be supported.
Updates the Py_BuildValue format string to match (including several existing
wrong 'i's that should have been 'l's).
14 years ago
Antoine Pitrou
1334884ff2
Issue #13848 : open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
14 years ago
Antoine Pitrou
75ff65ef96
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
14 years ago
Antoine Pitrou
f2bf8a6ac5
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
14 years ago
Meador Inge
65992c1c01
- Issue #13840 : Fix ctypes.create_string_buffer exception message and docs.
14 years ago
Antoine Pitrou
5311c1d7ab
Issue #13772 : In os.symlink() under Windows, do not try to guess the link
target's type (file or directory). The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
14 years ago
Benjamin Peterson
91eef984fd
fix declaration style
14 years ago
Gregory P. Smith
4842efcf97
Fix FreeBSD, NetBSD and OpenBSD behavior of the issue #8052 fix.
14 years ago
Gregory P. Smith
e9b7cab1da
Another issue #8052 bugfix (related to previous commit).
"oops" while rearranging the #defines.
14 years ago
Gregory P. Smith
e3f7848bc5
Bugfix for issue #8052 fix on *BSD variants.
Many lack readdir64, use readdir. Only use readdir64 on solaris where
it is required to work around a solaris bug.
14 years ago
Gregory P. Smith
8facece99a
Fixes issue #8052 : The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().
It now closes only the open fds when it is possible to safely determine what
those are.
14 years ago
Gregory P. Smith
12fdca59bb
Avoid the compiler warning about the unused return value.
14 years ago
Antoine Pitrou
fc1b6f0078
Fix the _io module leaking references when a sub-interpreter is created.
14 years ago
Ezio Melotti
acd5f7bceb
#13665 : s/string/bytes/ in error message.
14 years ago
Antoine Pitrou
2f828f2c88
Test running of code in a sub-interpreter
(prelude to issue #6531 ).
14 years ago
Charles-François Natali
366999a011
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
14 years ago
Ross Lagerwall
667d75d059
Don't redefine _GNU_SOURCE if it's already defined.
14 years ago
Ross Lagerwall
031bf95d32
Issue #11006 : Don't issue low level warning in subprocess when pipe2() fails.
14 years ago
Victor Stinner
bd206e27a4
Handle correctly _Py_fopen() error: don't replace the exception
14 years ago
Victor Stinner
e83f899364
Issue #13530 : Document os.lseek() result
Patch written by Jérémy Anger.
14 years ago
Victor Stinner
136ea49b39
Issue #10951 : Fix a compiler warning in timemodule.c
14 years ago
Victor Stinner
94ba691ed3
main() now displays an error message before exiting if a command line argument
cannot be decoded
14 years ago
Antoine Pitrou
c345ce1a69
Issue #10350 : Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
14 years ago
Charles-François Natali
10db4dec61
Issue #4028 : Make multiprocessing build on SunOS.
14 years ago
Alexandre Vassalotti
3bfc65a25b
Issue #13505 : Make pickling of bytes object compatible with Python 2.
Initial patch by sbt.
14 years ago
Florent Xicluna
0e686cbb7d
Fix docstring typo.
14 years ago
Victor Stinner
720f34a3e8
Issue #5905 : time.strftime() is now using the locale encoding, instead of
UTF-8, if the wcsftime() function is not available.
14 years ago