On 7/1/2022 9:12 AM, Nick Clifton wrote:
Hi Jeff,
[I am sending this to your directly since you seem to be the only one
reviewing these patches].
Hot on the heels of the fix for the recursion problem in demangle_const
a binutils user has filed another PoC that exposes a problem in
demangle_path_maybe_open_generics():
https://sourceware.org/bugzilla/show_bug.cgi?id=29312#c1
I have redirected them to file a bug report with the gcc system, but in
the hopes of getting a fix in quickly I am also attaching a patch
here. It just does the obvious thing of adding a recursion counter
and limit to the function.
OK. And yes, I wish someone else was looking at this stuff. Rust isn't
really on my radar right now...
jeff