Red Hat Bugzilla – Bug 504862
Using empty AUSOURCE_FILE_ARRAY fails with -EFAULT
Last modified: 2009-07-26 13:38:08 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.
Applied to upstream svn code as patchset 285. It will be in the next release. Thanks for reporting and fixing the bug.