Bug 133536 - memory access error in libaudit.c
Summary: memory access error in libaudit.c
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: audit
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Steve Grubb
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC3Target FC4Target
TreeView+ depends on / blocked
 
Reported: 2004-09-24 17:41 UTC by Charlie Bennett
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 0.5.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-12-06 22:01:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Charlie Bennett 2004-09-24 17:41:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Gecko/20040803

Description of problem:
From ArjanV:

libaudit.c aroundline 323 has this code:
struct audit_rule *audit_rule_alloc(void)
{
    struct audit_rule *rule;
                                                                     
                                                      
    if (!(rule = malloc(sizeof(rule)))) return NULL;
    memset(rule, 0, sizeof(*rule));
    return rule;
}

the sizeof is missing a * here leading to the memset overfowing the just
malloc'd buffer.... sounds likesomething that should get fixed eventually


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


How reproducible:
Always

Steps to Reproduce:

What he said

Additional info:

Comment 1 Steve Grubb 2004-12-06 22:01:39 UTC
This was fixed in 0.5.1 a couple weeks ago. This bug report can be 
closed. 


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