Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError | Serhiy Storchaka | 2013-02-10 | 1 | -2/+3 |
|\ | | | | | | | and a full traceback including line number. | ||||
| * | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError | Serhiy Storchaka | 2013-02-10 | 1 | -2/+3 |
| | | | | | | | | and a full traceback including line number. | ||||
* | | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 1 | -2/+2 |
|\ \ | |/ | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h). | ||||
| * | Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵ | Antoine Pitrou | 2013-02-09 | 2 | -3/+3 |
| | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag). | ||||
* | | Issue #17137: When an Unicode string is resized, the internal wide character | Victor Stinner | 2013-02-07 | 1 | -0/+4 |
| | | | | | | | | string (wstr) format is now cleared. | ||||
* | | Issue #17043: The unicode-internal decoder no longer read past the end of | Serhiy Storchaka | 2013-02-07 | 1 | -26/+22 |
|\ \ | |/ | | | | | input buffer. | ||||
| * | Issue #17043: The unicode-internal decoder no longer read past the end of | Serhiy Storchaka | 2013-02-07 | 1 | -27/+24 |
| | | | | | | | | input buffer. | ||||
* | | Issue #17034: Use Py_CLEAR() in bytesobject.c. | Serhiy Storchaka | 2013-02-02 | 1 | -8/+4 |
|\ \ | |/ | |||||
| * | Issue #17034: Use Py_CLEAR() in bytesobject.c. | Serhiy Storchaka | 2013-02-02 | 1 | -8/+4 |
| | | |||||
| * | Silence a -Wformat-extra-argument warning when compiling. | Gregory P. Smith | 2013-02-02 | 1 | -7/+15 |
| | | |||||
* | | Issue #16971: Fix a refleak in the charmap decoder. | Serhiy Storchaka | 2013-01-29 | 1 | -4/+13 |
| | | |||||
* | | Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder. | Serhiy Storchaka | 2013-01-29 | 1 | -52/+30 |
|\ \ | |/ | |||||
| * | Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder. | Serhiy Storchaka | 2013-01-29 | 1 | -51/+28 |
| | | |||||
* | | Fix a few typos and a double semicolon. Patch by Eitan Adler. | Ezio Melotti | 2013-01-27 | 1 | -1/+1 |
| | | |||||
* | | Issue #10156: In the interpreter's initialization phase, unicode globals | Serhiy Storchaka | 2013-01-26 | 1 | -90/+73 |
|\ \ | |/ | | | | | are now initialized dynamically as needed. | ||||
| * | Issue #10156: In the interpreter's initialization phase, unicode globals | Serhiy Storchaka | 2013-01-26 | 1 | -52/+45 |
| | | | | | | | | are now initialized dynamically as needed. | ||||
* | | Issue #16980: Fix processing of escaped non-ascii bytes in the | Serhiy Storchaka | 2013-01-25 | 1 | -1/+1 |
| | | | | | | | | unicode-escape-decode decoder. | ||||
* | | Issue #16975: Fix error handling bug in the escape-decode bytes decoder. | Serhiy Storchaka | 2013-01-25 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #16975: Fix error handling bug in the escape-decode bytes decoder. | Serhiy Storchaka | 2013-01-25 | 1 | -0/+4 |
| | | |||||
* | | Issue #16335: Fix integer overflow in unicode-escape decoder. | Serhiy Storchaka | 2013-01-21 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #16335: Fix integer overflow in unicode-escape decoder. | Serhiy Storchaka | 2013-01-21 | 1 | -1/+2 |
| | | |||||
* | | Issue #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-19 | 3 | -4/+22 |
|\ \ | |/ | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277. | ||||
| * | Issue #15989: Fix several occurrences of integer overflow | Serhiy Storchaka | 2013-01-19 | 3 | -4/+22 |
| | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277. | ||||
* | | Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping" | Serhiy Storchaka | 2013-01-15 | 1 | -19/+22 |
|\ \ | |/ | | | | | in any mapping, not only in an unicode string. | ||||
| * | Issue #14850: Now a chamap decoder treates U+FFFE as "undefined mapping" | Serhiy Storchaka | 2013-01-15 | 1 | -21/+25 |
| | | | | | | | | in any mapping, not only in an unicode string. | ||||
* | | Check for NULL before the pointer aligning in fastsearch_memchr_1char. | Serhiy Storchaka | 2013-01-15 | 1 | -15/+10 |
| | | | | | | | | There is no guarantee that NULL is aligned. | ||||
* | | correct static string clearing loop (closes #16906) | Benjamin Peterson | 2013-01-09 | 1 | -6/+9 |
| | | |||||
* | | Issue #11461: Fix the incremental UTF-16 decoder. Original patch by | Serhiy Storchaka | 2013-01-08 | 1 | -1/+4 |
|\ \ | |/ | | | | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters. | ||||
| * | Issue #11461: Fix the incremental UTF-16 decoder. Original patch by | Serhiy Storchaka | 2013-01-08 | 1 | -1/+4 |
| | | | | | | | | | | Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP characters. | ||||
| * | Fix out of bound read in UTF-32 decoder on "narrow Unicode" builds. | Serhiy Storchaka | 2013-01-08 | 1 | -1/+1 |
| | | |||||
* | | Issue #16856: Fix a segmentation fault from calling repr() on a dict with | Serhiy Storchaka | 2013-01-04 | 1 | -1/+1 |
| | | | | | | | | a key whose repr raise an exception. | ||||
* | | (Merge 3.2) Issue #16455: On FreeBSD and Solaris, if the locale is C, the | Victor Stinner | 2013-01-03 | 1 | -4/+4 |
|\ \ | |/ | | | | | | | | | | | ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice. | ||||
| * | Issue #16455: On FreeBSD and Solaris, if the locale is C, the | Victor Stinner | 2013-01-03 | 1 | -4/+4 |
| | | | | | | | | | | | | | | ASCII/surrogateescape codec is now used, instead of the locale encoding, to decode the command line arguments. This change fixes inconsistencies with os.fsencode() and os.fsdecode() because these operating systems announces an ASCII locale encoding, whereas the ISO-8859-1 encoding is used in practice. | ||||
* | | Fix the advertised size of PyCFunctionObjects in sys._debugmallocstats(). | Antoine Pitrou | 2012-12-30 | 1 | -2/+2 |
| | | |||||
* | | Issue #16761: Raise TypeError when int() called with base argument only. | Serhiy Storchaka | 2012-12-28 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Issue #16761: Raise TypeError when int() called with base argument only. | Serhiy Storchaka | 2012-12-28 | 1 | -2/+8 |
| | | |||||
| * | Keep y a Py_hash_t instead of Py_uhash_t as it is compared with == -1 and the | Gregory P. Smith | 2012-12-11 | 1 | -1/+2 |
| | | | | | | | | | | | | | | compiler logic will do the right thing with just x as a Py_uhash_t. This matches what was already done in the 3.3 version. cleanup only - no functionality or hash values change. | ||||
* | | try to call __bytes__ before __index__ (closes #16722) | Benjamin Peterson | 2012-12-19 | 1 | -5/+28 |
| | | |||||
* | | Fix the internals of our hash functions to used unsigned values during hash | Gregory P. Smith | 2012-12-11 | 3 | -11/+11 |
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change. | ||||
| * | Fix the internals of our hash functions to used unsigned values during hash | Gregory P. Smith | 2012-12-11 | 4 | -13/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change. | ||||
* | | Issue #16602: When a weakref's target was part of a long deallocation chain, ↵ | Antoine Pitrou | 2012-12-08 | 1 | -3/+2 |
|\ \ | |/ | | | | | | | | | the object could remain reachable through its weakref even though its refcount had dropped to zero. Thanks to Eugene Toder for diagnosing and reporting the issue. | ||||
| * | Issue #16602: When a weakref's target was part of a long deallocation chain, ↵ | Antoine Pitrou | 2012-12-08 | 1 | -3/+2 |
| | | | | | | | | | | | | the object could remain reachable through its weakref even though its refcount had dropped to zero. Thanks to Eugene Toder for diagnosing and reporting the issue. | ||||
* | | (Merge 3.2) Issue #16416: On Mac OS X, operating system data are now always | Victor Stinner | 2012-12-03 | 1 | -4/+5 |
|\ \ | |/ | | | | | | | | | | | 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. | ||||
| * | Issue #16416: On Mac OS X, operating system data are now always | Victor Stinner | 2012-12-03 | 1 | -4/+5 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Issue #16215: Fix potential double memory free in str.replace(). | Antoine Pitrou | 2012-11-17 | 1 | -0/+2 |
| | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | Issue #16453: Fix equality testing of dead weakref objects. | Antoine Pitrou | 2012-11-11 | 1 | -3/+7 |
|\ \ | |/ | | | | | Also add tests for ordering and hashing. | ||||
| * | Issue #16453: Fix equality testing of dead weakref objects. | Antoine Pitrou | 2012-11-11 | 1 | -3/+7 |
| | | | | | | | | Also add tests for ordering and hashing. | ||||
* | | Issue #8271: Fix compilation on Windows | Victor Stinner | 2012-11-04 | 1 | -1/+1 |
| | | |||||
* | | #8271: the utf-8 decoder now outputs the correct number of U+FFFD ↵ | Ezio Melotti | 2012-11-04 | 2 | -36/+66 |
| | | | | | | | | characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti. | ||||
* | | Issue #16402: Merge fix from 3.2 | Mark Dickinson | 2012-11-04 | 1 | -5/+5 |
|\ \ | |/ |