This is the mail archive of the bfd@sourceware.cygnus.com mailing list for the bfd project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for elf.c


> 
> We've disagreed before on whether memory should be cleared when it is
> allocated, and I think we will continue to disagree.  This was a bug

We can agree on that :-).

> introduced with a change to the function a few months ago.  The fix is
> to avoid introducing bugs; clearing memory is just treating the
> symptom.
> 

To me, clearing memory is the super set of setting one field to
zero. I am a better safe than sorry person. I have no time
to second guess if there is another field I should clear.


-- 
H.J. Lu (hjl@gnu.org)