diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-04 13:17:33 +0200 |
commit | 999f7adc21cdcef5b606d2529068121dc6032b18 (patch) | |
tree | a9816ef9c80aa8cc631f57ae44f4cd107c13e93e /gdb/ada-lex.l | |
parent | 1390b65a1b93f75cdd4165f190b4a95b93add66e (diff) | |
download | gdb-999f7adc21cdcef5b606d2529068121dc6032b18.zip gdb-999f7adc21cdcef5b606d2529068121dc6032b18.tar.gz gdb-999f7adc21cdcef5b606d2529068121dc6032b18.tar.bz2 |
[gdb/m2] Fix UB and literal truncation
Rewrite parse_number to use ULONGEST instead of LONGEST, to fix UB errors as
mentioned in PR29163.
Furthermore, make sure we error out on overflow instead of truncating in all
cases.
Tested on x86_64-linux, with a build with --enable-targets=all.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29163
Diffstat (limited to 'gdb/ada-lex.l')
0 files changed, 0 insertions, 0 deletions