aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-06-04 13:17:33 +0200
committerTom de Vries <tdevries@suse.de>2022-06-04 13:17:33 +0200
commit999f7adc21cdcef5b606d2529068121dc6032b18 (patch)
treea9816ef9c80aa8cc631f57ae44f4cd107c13e93e /gdb/python
parent1390b65a1b93f75cdd4165f190b4a95b93add66e (diff)
downloadbinutils-999f7adc21cdcef5b606d2529068121dc6032b18.zip
binutils-999f7adc21cdcef5b606d2529068121dc6032b18.tar.gz
binutils-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/python')
0 files changed, 0 insertions, 0 deletions