Red Hat Bugzilla – Bug 117332
calling free on random pointer value
Last modified: 2007-11-30 17:10:37 EST
Description of problem:
I just tried to compile Core2 Test1 package prelink-0.3.0-20
The compiler said
prelink.c(348): remark #592: variable "data" is used before its value
The source code is
Calling free on uninit local variable data is deeply unwise. Suggest init
data.d_buf before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks, fixed in my tree. Bigger bug is that GCC doesn't warn about
this (only when the variable is not aggregate). ++todo.
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.