[PATCH] Fix a double free in objcopy.
Nick Clifton
nickc@redhat.com
Wed Jan 27 10:34:51 GMT 2021
Hi Alan,
>>> * objcopy.c (copy_main): Fix a double free happening when both
>>> --localize-symbols and --globalize-symbols options are invoked
>>> together.
> I put this on the 2.36 and 2.35 branches too, along with c3ffb8f340
> "Segmentation fault i386-gen" on the grounds these patches are zero
> risk. I also put 4287950e54 "pr27228 testcase" on 2.36 to fix the
> testcase that was applied there.
Thanks very much.
It occurred to me after applying the patch to objcopy.c that we do
not need the conditional part of the "if (<name>) free (<name>)"
statements, and that if they had been removed then the double free
might have been more obvious. I will update mainline, but I do not
see any particular need to backport this particular change.
Cheers
Nick
More information about the Binutils
mailing list