[Python-bugs-list] [Bug #119558] bsddb module doesn't check return value of malloc()

noreply@sourceforge.net noreply@sourceforge.net
Fri, 27 Oct 2000 10:46:59 -0700


Bug #119558, was updated on 2000-Oct-27 10:46
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: bsddb module doesn't check return value of malloc()

Details: The bsddbmodule often uses code like this:

if (krec.size > sizeof(buf)) data = malloc(krec.size);
else data = buf;
memcpy(data,krec.data,krec.size);

If malloc() returns NULL, this will do a memcpy() using
NULL as the dest point.


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=119558&group_id=5470