[PATCH] [libiberty] Fix write buffer overflow in cplus_demangle
Fri Nov 13 04:45:03 GMT 2020
On 11/29/19 12:15 PM, Tim Rühsen wrote:
> * cplus-dem.c (ada_demangle): Correctly calculate the demangled
> size by using two passes.
So I'm not sure why, but I can't get this patch to apply. What's even
more interesting is ada_demangle doesn't seem to have changed since 2010
and even if I checkout a Nov 2019 trunk, I still can't apply the patch.
I can see what you're doing with your patch (it's primarily introducing
a loop where you count on the first pass and allocate on the second and
re-indent all the necessary code), I'd prefer not to muck it up trying
to apply by hand.
Any change you could update the patch so that it applies to the trunk.
THe review is done, so it should be able to go straight in. If you have
commit privs (I don't recall if you do or not), you can go ahead and
commit it yourself.
Sorry for the insane delays here.
More information about the Gcc-patches