Richard Oudkerk
9a16fa69dd
Fix for issue 14725 for 2.7 branch
14 years ago
Raymond Hettinger
a68bdc720a
Improve docstring
14 years ago
Mark Dickinson
92678105c5
Remove accidentally-committed debugging code.
14 years ago
Mark Dickinson
0407e96061
Issue 13496: Fix bisect.bisect overflow bug for large collections.
14 years ago
Benjamin Peterson
f235989e0c
protect this call, too
14 years ago
Benjamin Peterson
f73813a8bb
prevent writing to stderr from messing up the exception state ( closes #14474 )
14 years ago
Antoine Pitrou
4b536d4771
Issue #14437 : Fix building the _io module under Cygwin.
14 years ago
Gregory P. Smith
99576c04f1
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
c10f5c2828
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
Barry Warsaw
e9bc2f773f
- 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
Gregory P. Smith
d0e1a5b241
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
Gregory P. Smith
c8ff46032f
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
Georg Brandl
3aec568e6e
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
14 years ago
Benjamin Peterson
4e171d12da
don't need this hack anymore
14 years ago
Antoine Pitrou
776af4002b
Fix crash at startup with -W options.
14 years ago
Antoine Pitrou
cc3fa88a9c
Fix crash at startup with -W options.
14 years ago
Barry Warsaw
8757cad394
Backport fix from default branch for ./python -R -Wd where hash('d') would not
have gotten randomized.
14 years ago
Petri Lehtinen
4ab701b2d3
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033 .
14 years ago
Benjamin Peterson
9be6c3ddf0
kill interned strings computed before random initialization
14 years ago
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
14 years ago
Antoine Pitrou
dd7e071b23
Issue #13014 : Fix a possible reference leak in SSLSocket.getpeercert().
14 years ago
Antoine Pitrou
c39cd783fb
Issue #13015 : Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.
14 years ago
Petri Lehtinen
c7fd523ac5
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
15 years ago
Charles-François Natali
e0e88b0483
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
0518f470b1
sqlite3: Handle strings with embedded zeros correctly
Closes #13676 .
14 years ago
Antoine Pitrou
88c51e8cb1
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
d358e0554b
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
14 years ago
Nadeem Vawda
d7664dee0c
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
14 years ago
Jesus Cea
2ab4a91f43
Berkeley DB: Erratic behaviour of "DBEnv->rep_elect()" because a typo
14 years ago
Éric Araujo
7f4b3be2cc
Fix typo “seperator”
14 years ago
Amaury Forgeot d'Arc
dee76e627d
Issue #13774 : json: Fix a SystemError when a bogus encoding is passed to
json.loads().
14 years ago
Charles-François Natali
3aa59e327c
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
14 years ago
Charles-François Natali
b275e2d5e5
Issue #4028 : Make multiprocessing build on SunOS.
14 years ago
Raymond Hettinger
f537702732
Issue #13573 : The csv.writer now uses the repr() for floats rather than str().
14 years ago
Florent Xicluna
b918bdc92c
Fix docstring typo.
14 years ago
Victor Stinner
9f915d9c20
Issue #13093 : Fix _testcapi.unicode_encodedecimal()
_testcapimodule.c is not "ssize_t" safe in Python 2.7: the length argument type
is int, not Py_ssize_t.
14 years ago
Charles-François Natali
93a1175bac
Issue #13415 : Test in configure if unsetenv() has a return value or not.
14 years ago
Benjamin Peterson
42d96dc07d
no python objects to manage here
14 years ago
Benjamin Peterson
fde82169e1
plug refleak
14 years ago
Antoine Pitrou
aa1c967f93
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
14 years ago
Victor Stinner
53853c3fa9
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
14 years ago
Victor Stinner
975134e2a2
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
Add tests for PyUnicode_EncodeDecimal()
14 years ago
Antoine Pitrou
5aa7df320f
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
14 years ago
Florent Xicluna
0965ee213e
Issue #2892 : preserve iterparse events in case of SyntaxError
14 years ago
Florent Xicluna
67d5d0ed44
Closes #7334 : close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).
14 years ago
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
14 years ago
Senthil Kumaran
d583068e7d
Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
14 years ago
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
14 years ago
Nadeem Vawda
36248154a9
Issue #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
Also fix the builtin file class and the bz2 module, which used the same algorithm.
14 years ago
Charles-François Natali
1f3ff7bc3f
Issue #13156 : revert changeset f6feed6ec3f9, which was only relevant for native
TLS implementations, and fails with the ad-hoc TLS implementation when a thread
doesn't have an auto thread state (e.g. a thread created outside of Python
calling into a subinterpreter).
14 years ago