| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Avoid potential for undefined variable 'startinpos' in PyUnicode_DecodeUTF7(). | Guido van Rossum | 2009-03-05 | 1 | -2/+3 |
| | | | | | See issue #5389. | ||||
| * | Security patches from Apple: prevent int overflow when allocating memory | Neal Norwitz | 2008-07-31 | 1 | -11/+40 |
| | | |||||
| * | #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versions | Antoine Pitrou | 2008-07-25 | 1 | -1/+1 |
| | | |||||
| * | #1477: ur'\U0010FFFF' used to raise in narrow unicode builds. | Amaury Forgeot d'Arc | 2008-03-24 | 1 | -4/+42 |
| | | | | | | | | Corrected the raw-unicode-escape codec to use UTF-16 surrogates in this case, like the unicode-escape codec does. Backport of r61793 and r61853 | ||||
| * | Backport r61458: | Neal Norwitz | 2008-03-18 | 1 | -11/+15 |
| | | | | | | Issue 2321: reduce memory usage (increase the memory that is returned to the system) by using pymalloc for the data of unicode objects. | ||||
| * | Fix the overflows in expandtabs(). "This time for sure!" | Guido van Rossum | 2008-03-11 | 1 | -25/+33 |
| | | | | | (Exploit at request.) | ||||
| * | Backport r58709 from trunk: | Georg Brandl | 2007-11-02 | 1 | -3/+6 |
| | | | | | | | | | | Backport fixes for the code that decodes octal escapes (and for PyString also hex escapes) -- this was reaching beyond the end of the input string buffer, even though it is not supposed to be \0-terminated. This has no visible effect but is clearly the correct thing to do. (In 3.0 it had a visible effect after removing ob_sstate from PyString.) Also fixes #1098. | ||||
| * | Bug #1763149: use proper slice syntax in docstring. | Georg Brandl | 2007-07-29 | 1 | -2/+2 |
| | | | | | (backport) | ||||
| * | Patch #1673759: add a missing overflow check when formatting floats | Georg Brandl | 2007-07-12 | 1 | -1/+2 |
| | | | | | | with %G. (backport from rev. 56298) | ||||
| * | Backport 55874: | Neal Norwitz | 2007-06-11 | 1 | -2/+8 |
| | | | | | | Fix a bug when there was a newline in the string expandtabs was called on. This also catches another condition that can overflow. | ||||
| * | Prevent expandtabs() on string and unicode objects from causing a segfault when | Neal Norwitz | 2007-06-09 | 1 | -3/+14 |
| | | | | | | | | a large width is passed on 32-bit platforms. Found by Google. It would be good for people to review this especially carefully and verify I don't have an off by one error and there is no other way to cause overflow. | ||||
| * | Forward-port of r52136: a review of overflow-detecting code. | Armin Rigo | 2006-10-04 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests... | ||||
| * | Fix str.rpartition(sep) when sep is not found in str. | Neal Norwitz | 2006-09-05 | 1 | -2/+2 |
| | | | | | Partially from SF patch #1551339, but also taken from head. | ||||
| * | - Patch #1541585: fix buffer overrun when performing repr() on | Neal Norwitz | 2006-08-21 | 1 | -12/+25 |
| | | | | | | | a unicode string in a build with wide unicode (UCS-4) support. I will forward port to 2.6. Can someone backport to 2.4? | ||||
| * | Correct an accidentally removed previous patch. | Marc-André Lemburg | 2006-08-14 | 1 | -5/+2 |
| | | |||||
| * | Slightly revised version of patch #1538956: | Marc-André Lemburg | 2006-08-14 | 1 | -4/+83 |
| | | | | | | | | | | | Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched. | ||||
| * | Patch #1538606, Patch to fix __index__() clipping. | Neal Norwitz | 2006-08-12 | 1 | -5/+2 |
| | | | | | | | | I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible. | ||||
| * | Handle allocation failures gracefully. Found with failmalloc. | Neal Norwitz | 2006-07-21 | 1 | -0/+3 |
| | | | | | Many (all?) of these could be backported. | ||||
| * | Patch #1455898: Incremental mode for "mbcs" codec. | Martin v. Löwis | 2006-06-14 | 1 | -39/+175 |
| | | |||||
| * | Initialize the type object so pychecker can't crash the interpreter. | Neal Norwitz | 2006-06-13 | 1 | -0/+2 |
| | | |||||
| * | Apply perky's fix for #1503157: "/".join([u"", u""]) raising OverflowError. | Georg Brandl | 2006-06-10 | 1 | -3/+3 |
| | | | | | Also improve error message on overflow. | ||||
| * | RFE #1491485: str/unicode.endswith()/startswith() now accept a tuple as ↵ | Georg Brandl | 2006-06-09 | 1 | -20/+50 |
| | | | | | first argument. | ||||
| * | Repair refleaks in unicodeobject. | Georg Brandl | 2006-06-04 | 1 | -0/+3 |
| | | |||||
| * | Patch #1359618: Speed-up charmap encoder. | Martin v. Löwis | 2006-06-04 | 1 | -49/+285 |
| | | |||||
| * | needforspeed: stringlib refactoring: changed find_obj to find_slice, | Fredrik Lundh | 2006-05-27 | 1 | -18/+30 |
| | | | | | to enable use from stringobject | ||||
| * | needforspeed: replace improvements, changed to Py_LOCAL_INLINE | Fredrik Lundh | 2006-05-27 | 1 | -16/+30 |
| | | | | | where appropriate | ||||
| * | Revert bogus change committed in 46432 to this file. | Martin v. Löwis | 2006-05-27 | 1 | -1/+0 |
| | | |||||
| * | fixed typo | Andrew Dalke | 2006-05-27 | 1 | -1/+1 |
| | | |||||
| * | needforspeed: more stringlib refactoring | Fredrik Lundh | 2006-05-27 | 1 | -92/+60 |
| | | |||||
| * | Patch 1494554: Update numeric properties to Unicode 4.1. | Martin v. Löwis | 2006-05-27 | 1 | -0/+1 |
| | | |||||
| * | Fix Coverity warnings. | Neal Norwitz | 2006-05-27 | 1 | -1/+1 |
| | | | | | | - Check the correct variable (str_obj, not str) for NULL - sep_len was already verified it wasn't 0 | ||||
| * | Comment typo | Andrew M. Kuchling | 2006-05-26 | 1 | -1/+1 |
| | | |||||
| * | needforspeed: stringlib refactoring: use stringlib/find for string find | Fredrik Lundh | 2006-05-26 | 1 | -5/+4 |
| | | |||||
| * | needforspeed: use a macro to fix slice indexes | Fredrik Lundh | 2006-05-26 | 1 | -52/+18 |
| | | |||||
| * | needforspeed: stringlib refactoring: use stringlib/find for unicode | Fredrik Lundh | 2006-05-26 | 1 | -14/+36 |
| | | | | | find | ||||
| * | needforspeed: stringlib refactoring, continued. added count and | Fredrik Lundh | 2006-05-26 | 1 | -47/+35 |
| | | | | | find helpers; updated unicodeobject to use stringlib_count | ||||
| * | needspeed: rpartition documentation, tests, and a bug fixes. | Fredrik Lundh | 2006-05-26 | 1 | -2/+2 |
| | | | | | feel free to add more tests and improve the documentation. | ||||
| * | needforspeed: added rpartition implementation | Fredrik Lundh | 2006-05-26 | 1 | -0/+50 |
| | | |||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 1 | -43/+16 |
| | | |||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 1 | -87/+2 |
| | | |||||
| * | use Py_LOCAL also for string and unicode objects | Fredrik Lundh | 2006-05-26 | 1 | -22/+10 |
| | | |||||
| * | needforspeed: use Py_ssize_t for the fastsearch counter and skip | Fredrik Lundh | 2006-05-26 | 1 | -1/+1 |
| | | | | | | length (thanks, neal!). and yes, I've verified that this doesn't slow things down ;-) | ||||
| * | needforspeed: use METH_O for argument handling, which made partition some | Fredrik Lundh | 2006-05-26 | 1 | -7/+2 |
| | | | | | | ~15% faster for the current tests (which is noticable faster than a corre- sponding find call). thanks to neal-who-never-sleeps for the tip. | ||||
| * | needforspeed: partition implementation, part two. | Fredrik Lundh | 2006-05-26 | 1 | -63/+96 |
| | | | | | feel free to improve the documentation and the docstrings. | ||||
| * | Code had returned an ssize_t, upcast to long, then converted with ↵ | Andrew Dalke | 2006-05-25 | 1 | -1/+1 |
| | | | | | | | PyInt_FromLong. Now using PyInt_FromSsize_t. | ||||
| * | needforspeed: check for overflow in replace (from Andrew Dalke) | Fredrik Lundh | 2006-05-25 | 1 | -4/+25 |
| | | |||||
| * | needforspeed: refactored the replace code slightly; special-case | Fredrik Lundh | 2006-05-24 | 1 | -84/+86 |
| | | | | | constant-length changes; use fastsearch to locate the first match. | ||||
| * | needforspeedindeed: use fastsearch also for __contains__ | Fredrik Lundh | 2006-05-24 | 1 | -4/+19 |
| | | |||||
| * | needforspeed: use "fastsearch" for count and findstring helpers. this | Fredrik Lundh | 2006-05-24 | 1 | -1/+109 |
| | | | | | | | | | | | | | | | results in a 2.5x speedup on the stringbench count tests, and a 20x (!) speedup on the stringbench search/find/contains test, compared to 2.5a2. for more on the algorithm, see: http://effbot.org/zone/stringlib.htm if you get weird results, you can disable the new algoritm by undefining USE_FAST in Objects/unicodeobject.c. enjoy /F | ||||
| * | use Py_ssize_t for string indexes (thanks, neal!) | Fredrik Lundh | 2006-05-24 | 1 | -2/+2 |
| | | |||||
