cpython/Python
Thomas Heller 1df04617b7 When importing an extension on Windows, the code reads the PE 'import
table' of the dll, to make sure that the dll really was build for the
correct Python version.  It does this by looking for an entry
'pythonXY.dll' (X.Y is the Python version number).

The code now checks the size of the dll's import table before reading
entries from it.  Before this patch, the code crashed trying to read
the import table when the size was zero (as in Win2k's wmi.dll, for
example).

Look for imports of 'pythonXY_d.dll' in a debug build instead of
'pythonXY.dll'.

Fixes SF 951851: Crash when reading "import table" of certain windows dlls.

Already backported to the 2.3 branch.
2004-07-02 08:53:57 +00:00
..
.cvsignore
atof.c
bltinmodule.c SF Bug #215126: Over restricted type checking on eval() function 2004-07-02 06:41:07 +00:00
ceval.c SF Bug #215126: Over restricted type checking on eval() function 2004-07-02 06:41:07 +00:00
codecs.c Changed random calls to PyThreadState_Get() to use the macro 2004-03-24 22:22:12 +00:00
compile.c Move NOP to end of code transformation. 2004-06-24 09:25:39 +00:00
dup2.c
dynload_aix.c
dynload_atheos.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_next.c
dynload_os2.c
dynload_shlib.c A few more PyThreadState_Get to PyThreadState_GET conversions 2004-03-25 02:16:23 +00:00
dynload_stub.c
dynload_win.c When importing an extension on Windows, the code reads the PE 'import 2004-07-02 08:53:57 +00:00
errors.c Changed random calls to PyThreadState_Get() to use the macro 2004-03-24 22:22:12 +00:00
exceptions.c
fmod.c
frozen.c
frozenmain.c
future.c
getargs.c
getcompiler.c
getcopyright.c forward-port 1.17.12.1 2004-05-13 11:54:19 +00:00
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c SF patch #872326: Generator expression implementation 2004-05-19 08:20:33 +00:00
hypot.c
import.c Patch #923098: Share interned strings in marshal. 2004-06-27 16:51:46 +00:00
importdl.c
importdl.h
mactoolboxglue.c Getting rid of code conditional on TARGET_API_MAC_*. 2003-11-19 16:34:04 +00:00
marshal.c Patch #923098: Share interned strings in marshal. 2004-06-27 16:51:46 +00:00
memmove.c
modsupport.c Getting rid of support for the ancient Apple MPW compiler. 2003-11-19 15:24:47 +00:00
mysnprintf.c
mystrtoul.c Getting rid of support for the ancient Apple MPW compiler. 2003-11-19 15:24:47 +00:00
pyfpe.c
pystate.c Patch #510695: Add TSC profiling for the VM. 2004-06-08 08:17:44 +00:00
pystrtod.c Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
pythonrun.c Changed random calls to PyThreadState_Get() to use the macro 2004-03-24 22:22:12 +00:00
sigcheck.c
strdup.c
strerror.c Getting rid of all the code inside #ifdef macintosh too. 2003-11-20 01:44:59 +00:00
strtod.c
structmember.c Getting rid of all the code inside #ifdef macintosh too. 2003-11-20 01:44:59 +00:00
symtable.c SF patch #872326: Generator expression implementation 2004-05-19 08:20:33 +00:00
sysmodule.c Remove compiler warning 2004-06-13 20:32:17 +00:00
thread.c remove support for missing ANSI C header files (limits.h, stddef.h, etc). 2004-02-10 16:50:21 +00:00
thread_atheos.h
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h SF Patch #902444: Use process scope thread on FreeBSD. System scope 2004-03-04 06:35:57 +00:00
thread_sgi.h Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld 2004-01-17 04:04:13 +00:00
thread_solaris.h
thread_wince.h
traceback.c Moved tracebackobject to traceback.h, Closes SF Bug #497067 2004-03-21 18:37:23 +00:00