aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-11-16 13:58:06 -0700
committerTom Tromey <tromey@adacore.com>2022-11-30 07:56:07 -0700
commitf978da64412f37228bba9f79b3c68b7c6917379c (patch)
tree0f715357340928433e4c516bfd356e6fb9853dc8 /ld/ldlang.h
parent016c606c66ce4b98c220130b9046545b04254a4a (diff)
downloadgdb-f978da64412f37228bba9f79b3c68b7c6917379c.zip
gdb-f978da64412f37228bba9f79b3c68b7c6917379c.tar.gz
gdb-f978da64412f37228bba9f79b3c68b7c6917379c.tar.bz2
Bounds check access to Ada task state names
While looking into Ada tasking a little, I noticed that no bounds checking is done on accesses to the Ada task state names arrays. This isn't a problem currently, but if the runtime ever added numbers -- or if there was some kind of runtime corruption -- it could cause a gdb crash. This patch adds range checking. It also adds a missing _() call when printing from the 'task_states' array.
Diffstat (limited to 'ld/ldlang.h')
0 files changed, 0 insertions, 0 deletions