Re: [PATCH] PR demangler/80513 check for overflows and invalid characters in thunks

2017-04-26 Thread Ian Lance Taylor via gcc-patches
On Wed, Apr 26, 2017 at 3:02 PM, Jonathan Wakely wrote: > This ensures we notice if a number in a mangled name overflows an int. > The check in consume_count can be optimized away, and there was no > check in d_number. > > It also adds a check that the next character after __thunk_ is > an undersc

[PATCH] PR demangler/80513 check for overflows and invalid characters in thunks

2017-04-26 Thread Jonathan Wakely
This ensures we notice if a number in a mangled name overflows an int. The check in consume_count can be optimized away, and there was no check in d_number. It also adds a check that the next character after __thunk_ is an underscore, rather than just skipping over it. OK for trunk? PR