commit | f978da64412f37228bba9f79b3c68b7c6917379c | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Wed Nov 16 13:58:06 2022 -0700 |
committer | Tom Tromey <tromey@adacore.com> | Wed Nov 30 07:56:07 2022 -0700 |
tree | 0f715357340928433e4c516bfd356e6fb9853dc8 | |
parent | 016c606c66ce4b98c220130b9046545b04254a4a [diff] |
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.