On Wed, Apr 26, 2017 at 3:02 PM, Jonathan Wakely <jwak...@redhat.com> 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_<number> is
> an underscore, rather than just skipping over it.
>
> OK for trunk?
>
>         PR demangler/80513
>         * cp-demangle.c (d_number): Check for overflow.
>         * cplus-dem.c (consume_count): Fix overflow check.
>         (gnu_special): Check for underscore after thunk delta.
>         * testsuite/demangle-expected: Add tests for overflows and invalid
>         characters in thunks.

This is OK.

Thanks.

Ian

Reply via email to