Gregory P. Smith
90555d0f0d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
13 years ago
Antoine Pitrou
305e1a749f
Issue #16628 : Fix a memory leak in ctypes.resize().
13 years ago
Victor Stinner
27b1ca29cc
Issue #16416 : On Mac OS X, operating system data are now always
encoded/decoded to/from UTF-8/surrogateescape, instead of the locale encoding
(which may be ASCII if no locale environment variable is set), to avoid
inconsistencies with os.fsencode() and os.fsdecode() functions which are
already using UTF-8/surrogateescape.
13 years ago
Benjamin Peterson
47a00f3d1a
support encoding error handlers that return bytes ( closes #16585 )
13 years ago
Benjamin Peterson
aff472394c
unicode -> str
13 years ago
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
13 years ago
Gregory P. Smith
14b04cd350
Plug a leak in timemodule. The module dictionary is saved during
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
13 years ago
Antoine Pitrou
bf6ecf92fa
Issue #12848 : The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
13 years ago
Ezio Melotti
a0dd22e5e8
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
13 years ago
Nadeem Vawda
19e568d254
Issue #15677 : Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
13 years ago
Gregory P. Smith
9463e3ac8b
Fixes issue #9535 : Fix pending signals that have been received but not
yet handled by Python to not persist after os.fork() in the child process.
13 years ago
Nadeem Vawda
7ee955550b
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
13 years ago
Nadeem Vawda
ee7889dec3
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
13 years ago
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
13 years ago
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
13 years ago
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
13 years ago
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
from a Decimal argument.
13 years ago
Nadeem Vawda
39079946a2
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
13 years ago
Stefan Krah
e6996ed5d9
Issue #16145 : Support legacy strings in the _csv module.
13 years ago
Antoine Pitrou
e4ad37e50e
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
13 years ago
Antoine Pitrou
9f69e79c45
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
Patch by Serhiy Storchaka.
13 years ago
Andrew Svetlov
6a5c7c341a
Fix docstring for deque ctor to mark iterable parameter optional
13 years ago
Benjamin Peterson
c43112823b
initialize more global type objects ( closes #16369 )
13 years ago
Petri Lehtinen
92c28cace4
#14897 : Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
13 years ago
Mark Dickinson
76464494bc
Fix math.factorial KeyboardInterrupt segfault. Thanks Amaury for report and diagnosis.
13 years ago
Petri Lehtinen
5445a8cb41
Replace tabs with spaces in posixmodule.c
13 years ago
Nadeem Vawda
5f8f0d6777
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
13 years ago
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
13 years ago
Mark Dickinson
c04ddff290
Issue #16096 : Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka.
13 years ago
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
13 years ago
Jesus Cea
6e1d2b6e78
Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
13 years ago
Jesus Cea
cf45325b61
Closes #15897 : zipimport.c doesn't check return value of fseek(). Typo
13 years ago
Jesus Cea
09bf7a799d
Closes #15897 : zipimport.c doesn't check return value of fseek()
13 years ago
Antoine Pitrou
c194884983
Sanitize and modernize some of the _elementtree code (see issue #16089 ).
13 years ago
Stefan Krah
a0346e56ac
Support gcc's -ansi flag: use "__asm__" instead of "asm".
13 years ago
Stefan Krah
e59aa8c94d
Revert 29506c7db353 (build output should be accurate).
13 years ago
Christian Heimes
72c9946718
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
13 years ago
Stefan Krah
9a3f05e60f
Make it clear that the pi function is modified for benchmarking purposes.
13 years ago
Stefan Krah
6b6a1df996
Restore the benchmark order to avoid waiting for decimal.py if just the
prec=9 test is used.
13 years ago
Brett Cannon
6cf50c5b1d
Fix whitespace.
13 years ago
Brett Cannon
63092fe0ea
Fix whitespace.
13 years ago
Brett Cannon
d266c4451f
Make the decimal bench file run under Python 2.7.
13 years ago
Senthil Kumaran
67b7b98a47
Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
13 years ago
Georg Brandl
d37b9d7e1b
Port #16012 fix: parameter parsing regression in pyexpat parser UseForeignDTD() method.
13 years ago
Christian Heimes
e26d3af7ee
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
13 years ago
Christian Heimes
3b9493b53c
Use C-style comments for C89 / ANSI C compatibility
13 years ago
Christian Heimes
b8cd700155
Use C-style comments for C89 / ANSI C compatibility
13 years ago
Stefan Krah
91ceeceea7
Use C-style comments (required for the AIX build slave).
13 years ago
Stefan Krah
a4b4dea415
Use C-style comments (required for the AIX build slave).
13 years ago