Bug 60179 - Bad memory allocation
Bad memory allocation
Product: Red Hat Raw Hide
Classification: Retired
Component: isdn4k-utils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2002-02-21 07:56 EST by Enrico Scholz
Modified: 2007-04-18 12:40 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-02-21 07:57:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Enrico Scholz 2002-02-21 07:56:03 EST
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):

Comment 1 Enrico Scholz 2002-02-21 07:56:58 EST
Created attachment 46240 [details]
Comment 2 Ngo Than 2002-02-21 08:30:09 EST
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.