Bug 504862 - Using empty AUSOURCE_FILE_ARRAY fails with -EFAULT
Using empty AUSOURCE_FILE_ARRAY fails with -EFAULT
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: audit (Show other bugs)
10
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Grubb
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-09 15:11 EDT by Miloslav Trmač
Modified: 2009-07-26 13:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-07-26 13:38:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Don't fopen(NULL, ...) (492 bytes, patch)
2009-06-09 15:11 EDT, Miloslav Trmač
no flags Details | Diff

  None (edit)
Description Miloslav Trmač 2009-06-09 15:11:32 EDT
Created attachment 347076 [details]
Don't fopen(NULL, ...)

libauparse does not handle empty AUSOURCE_FILE_ARRAY correctly.  Currently it accepts the source, but auparse_next_event() fails with EFAULT.

The attached patch makes the handling of empty file array consistent with non-empty arrays.
Comment 1 Steve Grubb 2009-07-26 13:38:08 EDT
Applied to upstream svn code as patchset 285. It will be in the next release. Thanks for reporting and fixing the bug.

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