Red Hat Bugzilla – Bug 1014351
Coverity fixes - 12023, 12024, and 12025
Last modified: 2014-10-14 03:51:42 EDT
This bug is created as a clone of upstream ticket:
fix newer coverity issues 12023, 12024, and 12025
ldclt.c: 12023 Ignoring number of bytes read
The number of bytes copied into the buffer can be smaller than the requested number and the buffer can potentially be accessed out of range.
In basicInit: Value returned from a function and indicating the number of bytes read is ignored.
roles_cache.c: 12024 Resource leak
The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In roles_cache_create_object_from_entry: Leak of memory or pointers to system resources
dblayer.c: 12025 Wrong sizeof argument
The wrong sizeof value is used in an expression or as argument to a function. The result is an incorrect value that may cause unexpected program behaviors.
In read_metadata: The sizeof operator is invoked on the wrong argument
Request dev to mark the bug as Verified from Coverity reports.
Covscan passed with no defect reports (except one false positive).
Please mark VERIFIED.
As per Noriko's previous comment, marking the bug as Verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.