summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2004-07-02 08:53:57 (GMT)
committerThomas Heller <theller@ctypes.org>2004-07-02 08:53:57 (GMT)
commit1df04617b7e8678420dfefa0319fea9fab84af53 (patch)
tree59024130db8a9040fc0b361f2f96ae2a9a262c75 /Misc
parent32b8f8052a0cf62fe8f9f3dbc539a0f1b3065896 (diff)
downloadcpython-1df04617b7e8678420dfefa0319fea9fab84af53.zip
cpython-1df04617b7e8678420dfefa0319fea9fab84af53.tar.gz
cpython-1df04617b7e8678420dfefa0319fea9fab84af53.tar.bz2
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.
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions