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
..
Makefile.pre.in Marc-Andre Lemburg: add new Unicode-related files. 2000-03-10 23:12:33 +00:00
Setup.in This module's name should be linuxaudio*dev*.c 2000-03-31 16:56:32 +00:00
Setup.thread.in Moved the thread module to its own Setup.thread(.in) file, 1997-12-04 00:48:27 +00:00
_codecsmodule.c Marc-Andre Lemburg: 2000-03-28 20:29:59 +00:00
_cursesmodule.c Patch by Charles Waldman to implement an optional nlines argument to 1999-01-05 17:16:46 +00:00
_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
cPickle.c Marc-Andre Lemburg: support pickling Unicode objects, both in text 2000-03-10 23:11:40 +00:00
cStringIO.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 Keep gcc -Wall happy. 1997-04-29 21:34:16 +00:00
cgensupport.c Moved here from ../Python and quickly renamed. 1997-04-29 15:43:55 +00:00
cgensupport.h Moved rename2's macros relevant to this module here and added comment 1997-04-29 15:35:28 +00:00
clmodule.c lots of "goto error" replaced by "return" (Jack) 1997-10-08 15:26:28 +00:00
cmathmodule.c Docstring fix: acosh() returns the hyperbolic arccosine, not the 1999-03-16 14:17:48 +00:00
config.c.in Renamed inittab. 1997-04-29 20:31:59 +00:00
cryptmodule.c Added docstring to crypt.crypt() based on the documentation. 2000-02-01 20:12:39 +00:00
cstubs Generate the clear() method manually (calling __GLclear(), another 1998-04-28 16:09:16 +00:00
dbmmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
dlmodule.c Fix mysterious undetected error -- call to non-existant Py_Err_SetStr() 1997-12-16 23:58:15 +00:00
errnomodule.c initerrno(): Nailed a not-so-tiny memory leak. The de dictionary is 1999-01-27 18:04:05 +00:00
fcntlmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
flmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
fmmodule.c Renamed, but not tested. Guido will you try your test script on this? 1997-01-17 16:08:55 +00:00
fpectlmodule.c Avoid triggering Alpha OSF/1 specific code on Alpha NT or Linux. 1999-04-19 16:50:26 +00:00
fpetestmodule.c Needed to add DL_EXPORT to (redundant?) extern decl of module init function. 1998-12-10 16:49:28 +00:00
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 Patches by William Lewis for Nextstep descendants. 1999-01-27 17:53:11 +00:00
glmodule.c Check in the changed version after running the stubber again -- this 1998-10-21 16:10:40 +00:00
grpmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
imageop.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
imgfile.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
ld_so_aix Mod suggested by Donn Cave -- invoke makexp_aix relative to $0 1997-09-03 00:45:30 +00:00
license.terms Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
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
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 remove C++ entries of the form Class::method 1998-04-09 21:46:02 +00:00
mathmodule.c Correctly document atan2. 1998-12-08 16:27:10 +00:00
md5.h Use INT_MAX/LONG_MAX instead of non-ANSI LONG_BIT 1996-07-21 02:34:55 +00:00
md5c.c Always include config.h 1996-08-19 22:12:39 +00:00
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 Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
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 AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
pcre.h AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
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 Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
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 Py_Main() must be DL_EXPORT too. 1998-12-07 14:28:47 +00:00
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 Change [_Py_]re_compile_pattern() to return a char*. 1997-09-03 00:47:36 +00:00
resource.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
rgbimgmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
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
sgimodule.c Great renaming. 1996-12-10 00:32:31 +00:00
shamodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
signalmodule.c Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
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 Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
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 audio(7I) suggests that applications do the following to get the 1998-10-31 22:52:54 +00:00
svmodule.c Apply two changes, systematically: 1997-10-01 04:29:29 +00:00
syslogmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00
tclNotify.c Add an optional hack for threads in Tkinter. 1997-09-28 05:52:41 +00:00
termios.c Should include "Python.h", not <Python.h> -- it's not a standard 1999-01-14 19:31:42 +00:00
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 remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Add DL_EXPORT() to all modules that could possibly be used 1998-12-04 18:50:17 +00:00
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 New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
yuvconvert.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
zlibmodule.c Massive patch by Skip Montanaro to add ":name" to as many 2000-02-29 13:59:29 +00:00