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
_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
addrinfo.h
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
ccpython.cc
cdmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cgen.py
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
cPickle.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
cryptmodule.c
cStringIO.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
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
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
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
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
Setup.config.in
Setup.dist [ 959576 ] Can't build Python on POSIX w/o $HOME 2005-12-27 17:37:07 +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
sre_constants.h
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
unicodedata.c Patch #1213831: Fix typo in unicodedata._getcode. 2005-09-18 08:17:56 +00:00
unicodedata_db.h
unicodename_db.h
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