cpython/Objects
Guido van Rossum 2023c9b84a Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the
wrong thing for a unicode subclass when there were zero string
replacements.  The example given in the SF bug report was only one way
to trigger this; replacing a string of length >= 2 that's not found is
another.  The code would actually write outside allocated memory if
replacement string was longer than the search string.

(I wonder how many more of these are lurking?  The unicode code base
is full of wonders.)

Bugfix candidate; this same bug is present in 2.2.1.
2002-08-23 18:50:21 +00:00
..
.cvsignore
abstract.c Squash a few calls to the hideously expensive PyObject_CallObject(o,a) 2002-08-16 17:01:09 +00:00
boolobject.c Make more functions static 2002-08-06 22:12:52 +00:00
bufferobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c getinstclassname(): Squash new compiler wng in assert (comparison of 2002-08-20 14:31:35 +00:00
cobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
complexobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
descrobject.c Make PyDescr_IsData() a macro. It's too simple to be a function. 2002-08-19 18:45:37 +00:00
dictobject.c SF patch 576101, by Oren Tirosh: alternative implementation of 2002-08-19 21:43:18 +00:00
enumobject.c Remove the next() method -- one is supplied automatically by 2002-07-16 21:02:42 +00:00
fileobject.c Reflow long lines. 2002-08-14 21:01:41 +00:00
floatobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
frameobject.c Check in my ultra-shortlived patch #597220. 2002-08-19 16:54:08 +00:00
funcobject.c Extend function() to support an optional closure argument. 2002-07-11 18:30:27 +00:00
intobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
iterobject.c Squash a few calls to the hideously expensive PyObject_CallObject(o,a) 2002-08-16 17:01:09 +00:00
listobject.c 1. Combined the base and length arrays into a single array of structs. 2002-08-10 05:21:15 +00:00
listsort.txt Fixed new typos, added a little info about ~sort versus "hint"s. 2002-08-10 07:04:01 +00:00
longobject.c long_format(), long_lshift(): Someone on c.l.py is trying to boost 2002-08-20 19:00:22 +00:00
methodobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
moduleobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
object.c Another modest speedup in PyObject_GenericGetAttr(): inline the call 2002-08-19 19:22:50 +00:00
obmalloc.c Remove extraneous semicolon. 2002-07-18 18:49:52 +00:00
rangeobject.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
sliceobject.c Silly typo. Not sure how that got in. 2002-07-19 15:52:38 +00:00
stringobject.c Code by Inyeol Lee, submitted to SF bug 595350, to implement 2002-08-23 18:21:28 +00:00
structseq.c Remove PyMalloc_New and PyMalloc_Del. 2002-04-12 03:05:37 +00:00
tupleobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
typeobject.c Squash a few calls to the hideously expensive PyObject_CallObject(o,a) 2002-08-16 17:01:09 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Fix SF bug 599128, submitted by Inyeol Lee: .replace() would do the 2002-08-23 18:50:21 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
weakrefobject.c Add support for the iterator protocol to weakref proxy objects. 2002-08-09 18:34:16 +00:00
xxobject.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00