Bug 60179 - Bad memory allocation
Summary: Bad memory allocation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: isdn4k-utils
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-21 12:56 UTC by Enrico Scholz
Modified: 2007-04-18 16:40 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-02-21 12:57:03 UTC
Embargoed:


Attachments (Terms of Use)
fix (477 bytes, patch)
2002-02-21 12:56 UTC, Enrico Scholz
no flags Details | Diff

Description Enrico Scholz 2002-02-21 12:56:03 UTC
Description of Problem:

isdnlog/tools/cdb/i4l_cdb.c contains in i4l_cdb_open() the following code

|    _DB d = 0;
|    ...
|      d = calloc(sizeof(_DB), 1);

where _DB is a 'struct _db_t *'. Obviously, this is wrong since only space for
the pointer but not for the struct was calloc'ed; memory-debuggers are
complaining about it also.

The bug was reported upstream but I got no response yet.


Version-Release number of selected component (if applicable):

isdn4k-utils-3.1-49

Comment 1 Enrico Scholz 2002-02-21 12:56:58 UTC
Created attachment 46240 [details]
fix

Comment 2 Than Ngo 2002-02-21 13:30:09 UTC
Thanks, it's fixed in 3.1-51


Note You need to log in before you can comment on or make changes to this bug.