cpython/Modules
Fred Drake 56a87a0905 Patch from Hrvoje Niksic <hniksic@iskon.hr>:
The bug is in mmap_read_line_method(), and its loop that searches for
newlines.  After the loop reaches EOF, eol is incremented and points
after the end of the memory.  This results in readline() method
sometimes picking up and returning a byte after the end of the string.
This is usually a bogus \0, but it could cause SIGSEGV if it's after
the end of the page).

The patch fixes the problem.  Also, it uses memchr() for finding a
character, which is in fact the "strnchr" the comment is asking for.
memchr() is already used in Python sources, so there should be no
portability problems.
2000-04-04 18:17:35 +00:00
..
_codecsmodule.c Marc-Andre Lemburg: 2000-03-28 20:29:59 +00:00
_cursesmodule.c
_localemodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
_sre.c Adding Fredrik Lundh's _sre.c module and its header files. 2000-03-31 14:59:30 +00:00
_tkinter.c Add back an obscure "feature" to the Obj version of Tkapp_Call(): a 2000-03-31 03:29:39 +00:00
almodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
arraymodule.c Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>: 2000-02-04 20:33:49 +00:00
audioop.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
binascii.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
bsddbmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
ccpython.cc Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
cdmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
cgen.py
cgensupport.c
cgensupport.h
clmodule.c
cmathmodule.c Docstring fix: acosh() returns the hyperbolic arccosine, not the 1999-03-16 14:17:48 +00:00
config.c.in
cPickle.c Marc-Andre Lemburg: support pickling Unicode objects, both in text 2000-03-10 23:11:40 +00:00
cryptmodule.c Added docstring to crypt.crypt() based on the documentation. 2000-02-01 20:12:39 +00:00
cStringIO.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
cstubs
dbmmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
dlmodule.c
errnomodule.c
fcntlmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
flmodule.c
fmmodule.c
fpectlmodule.c Avoid triggering Alpha OSF/1 specific code on Alpha NT or Linux. 1999-04-19 16:50:26 +00:00
fpetestmodule.c
gdbmmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
getbuildinfo.c Patch by Mark Hammond to avoid certain header files on Windows/CE. 1999-08-27 20:39:37 +00:00
getpath.c
glmodule.c
grpmodule.c
imageop.c
imgfile.c
ld_so_aix
license.terms
linuxaudiodev.c This module's name should be linuxaudio*dev*.c 2000-03-31 16:56:32 +00:00
main.c Patch from Tim Peters to repare a the problem that tracebacks are off 1999-04-19 17:54:19 +00:00
Makefile.pre.in Marc-Andre Lemburg: add new Unicode-related files. 2000-03-10 23:12:33 +00:00
makesetup On HP-UX, -rpath is another option taking an argument that needs to go 1999-05-21 19:18:49 +00:00
makexp_aix
mathmodule.c
md5.h
md5c.c
md5module.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
mmapmodule.c Patch from Hrvoje Niksic <hniksic@iskon.hr>: 2000-04-04 18:17:35 +00:00
mpzmodule.c Better fix for mpzmodule problem reported by Peter Funk: just use 2000-02-25 22:23:31 +00:00
newmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
nismodule.c Patch by Fred Gansevles (the module's original author). 2000-02-29 15:52:40 +00:00
operator.c
parsermodule.c What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT. 2000-02-21 18:19:06 +00:00
pcre-int.h
pcre.h
pcremodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
posixmodule.c Sigh. On Windows, (mode_t)i fails. Assume that there's a prototype 2000-03-31 01:26:23 +00:00
puremodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
pwdmodule.c
pyexpat.c Make it compile on Windows. 2000-03-31 16:18:11 +00:00
pypcre.c Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr> 2000-02-18 19:16:45 +00:00
python.c
readline.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
regexmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
regexpr.c casts for picky compilers. 1999-04-10 15:48:23 +00:00
regexpr.h
resource.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
rgbimgmodule.c
rotormodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
selectmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
Setup.in This module's name should be linuxaudio*dev*.c 2000-03-31 16:56:32 +00:00
Setup.thread.in
sgimodule.c
shamodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
signalmodule.c
socketmodule.c Add warning that multi-arg connect() etc. are deprecated. 2000-04-04 15:09:07 +00:00
soundex.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
sre.h Adding Fredrik Lundh's _sre.c module and its header files. 2000-03-31 14:59:30 +00:00
sre_constants.h Adding Fredrik Lundh's _sre.c module and its header files. 2000-03-31 14:59:30 +00:00
stdwinmodule.c
stropmodule.c On 17-Mar-2000, Marc-Andre Lemburg said: 2000-03-20 16:36:48 +00:00
structmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
sunaudiodev.c
svmodule.c
syslogmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
tclNotify.c
termios.c
threadmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
timemodule.c Fix probable bug; if errno == EINTR, floatsleep() doesn't break out of 2000-03-24 20:35:20 +00:00
timing.h
timingmodule.c
tkappinit.c Patch by Dieter Maurer to make things work for Tcl/Tk 8.1. This 1999-11-05 18:11:23 +00:00
unicodedata.c Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
unicodedatabase.c Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
unicodedatabase.h Marc-Andre Lemburg: The large unicode database table is broken in 2000-03-31 17:26:12 +00:00
xxmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
yuv.h
yuvconvert.c
zlibmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00