aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-22 21:20:57 +0930
committerAlan Modra <amodra@gmail.com>2023-08-23 10:07:45 +0930
commit0e3513d256c3b4475aa7fae33d20e073c3a3b929 (patch)
tree0bc89a155b4fd5546fac05bd029c943c464dbd26 /gdb/ui-out.c
parent8c8145a43ee4815b8851f8da7091c04f551dff6e (diff)
downloadbinutils-0e3513d256c3b4475aa7fae33d20e073c3a3b929.zip
binutils-0e3513d256c3b4475aa7fae33d20e073c3a3b929.tar.gz
binutils-0e3513d256c3b4475aa7fae33d20e073c3a3b929.tar.bz2
gdb: bfd_get_symbol_leading_char vs. ""
Some places matching the first char of a string against bfd_get_symbol_leading_char, which may be zero, didn't check for "". This could lead to accesses past the end of the string and potential buffer overruns. Fix that, and also get rid of a stupid optimisation in dbxread when looking for "__DYNAMIC" that also might access past the end of a string.
Diffstat (limited to 'gdb/ui-out.c')
0 files changed, 0 insertions, 0 deletions