cpython/Modules
Tim Peters 3d56350910 _compile(): raise an exception if downcasting to SRE_CODE
loses information:

    OverflowError: regular expression code size limit exceeded

Otherwise the compiled code is gibberish, possibly leading at
least to wrong results or (as reported on c.l.py) internal
sre errors at match time.

I'm not sure how to test this.  SRE_CODE is a 2-byte type on
my box, and it's easy to create a regexp that causes the new
exception to trigger here.  But it may be a 4-byte type on
other boxes, and creating a regexp large enough to trigger
problems there would be pretty crazy.

Bugfix candidate.
2006-01-21 02:47:53 +00:00
..
cjkcodecs Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn module 2005-12-12 11:48:32 +00:00
expat Fix icc warnings: using wrong enum type 2006-01-07 21:21:16 +00:00
zlib Remove unneeded directories. 2006-01-03 06:48:38 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +00:00
_bisectmodule.c Add const to several API functions that take char *. 2005-12-10 18:50:16 +00:00
_bsddb.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_codecsmodule.c Whitespace cleanup. 2005-11-02 08:30:08 +00:00
_csv.c Add const to several API functions that take char *. 2005-12-10 18:50:16 +00:00
_curses_panel.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_cursesmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_elementtree.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_hashopenssl.c Fix icc warnings: HASH_OBJ_CONSTRUCTOR was not defined and using #if HASH_OBJ_CONSTRUCTOR 2006-01-08 01:08:09 +00:00
_heapqmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_hotshot.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
_localemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_randommodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_sre.c _compile(): raise an exception if downcasting to SRE_CODE 2006-01-21 02:47:53 +00:00
_ssl.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_testcapimodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_tkinter.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
_weakref.c Make weak references subclassable: 2004-07-02 18:57:45 +00:00
addrinfo.h Add comments at end of every #endif and fix ones already there when for closing 2004-07-10 19:30:39 +00:00
almodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ar_beos
arraymodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
audioop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
binascii.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
bsddbmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
bz2module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cPickle.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cStringIO.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ccpython.cc
cdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cgen.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
cgensupport.c
cgensupport.h
clmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
collectionsmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
config.c.in
cryptmodule.c
cstubs
datetimemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
dbmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
dlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
errnomodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fcntlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
flmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpectlmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
functionalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
gdbmmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
getaddrinfo.c SF #784031: Byte-order bug in socket-module getaddrinfo.c 2003-08-17 21:28:39 +00:00
getbuildinfo.c Generate getbuildinfo.o each time the linker is invoked; 2006-01-18 09:13:51 +00:00
getnameinfo.c
getpath.c squash compiler warning on Mac OSX 10.3 2006-01-05 10:49:13 +00:00
glmodule.c
grpmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imageop.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
imgfile.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
itertoolsmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos
linuxaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
main.c Fix a bunch of imports to use code.h instead of compile.h. 2005-10-21 14:58:06 +00:00
makesetup
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
md5.h
md5c.c Patch #977074: Move Encode/Decode to the top so gcc can inline them. 2004-08-03 13:08:07 +00:00
md5module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
mmapmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
nismodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
operator.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
ossaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
parsermodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
posixmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
puremodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
pyexpat.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
regexmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
regexpr.c
regexpr.h
resource.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
rgbimgmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
selectmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sgimodule.c
sha256module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sha512module.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
shamodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.h Get socketmodule to build after adding netlink support. 2006-01-16 04:31:40 +00:00
spwdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sre.h Add weakref support to sockets and re pattern objects. 2004-05-31 03:09:25 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
stropmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
structmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
sunaudiodev.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
svmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
symtablemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
syslogmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h
threadmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timemodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
timing.h
timingmodule.c
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Patch #1213831: Fix typo in unicodedata._getcode. 2005-09-18 08:17:56 +00:00
unicodedata_db.h SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
unicodename_db.h - SF #962502: Add two more methods for unicode type; width() and 2004-06-02 16:49:17 +00:00
xxmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
xxsubtype.c
yuv.h
yuvconvert.c
zipimport.c the implementation uses ZipImportError, not ZipImporterError... 2006-01-15 15:00:40 +00:00
zlibmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00