Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdb: Avoid buffer overflow in ada_decode
This is a partial backport patch from gdb commit 033bc52bb619 ("Avoid buffer overflow in ada_decode"). The AddressSanitizer reports a dynamic-stack-buffer-overflow error as below: gdb/ada-lang.c:1388:16 in ada_decode[abi:cxx11](char const*, bool, bool) Add a missing bounds check to fix the issue. Link: https://sourceware.org/bugzilla/show_bug.cgi?id=30639 Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
- Loading branch information