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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 29 Oct 2000 09:55:56 -0800


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.


Follow-Ups:

Date: 2000-Oct-29 09:55
By: jhylton

Comment:
Do you want to fix it?  Or should we wait for your new module?

-------------------------------------------------------

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