Issue 708201: unchecked return value in import.c

Created on 2003-03-23 00:15 by jasonharper, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
import.diff jasonharper, 2003-03-23 00:17 diff of Python/import.c
Messages (2)
msg43114 - (view) Author: Jason Harper (jasonharper) Date: 2003-03-23 00:15
In Python/import.c, routine PyImport_ImportModule, a 
call to PyString_AsString is not checked for errors.  A 
possibly NULL return value gets passed to another 
routine, and DECREFed.  It's not a particularly likely 
place for an error to occur, but I did manage to get a 
MemoryError at exactly that point, resulting in a Python 
crash.
msg43115 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-03-23 14:46
Logged In: YES 
user_id=33168

Thanks!

Checked in as: Python/import.c 2.220 and 2.192.6.4
History
Date User Action Args
2022-04-10 16:07:51adminsetgithub: 38202
2003-03-23 00:15:11jasonharpercreate