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 | 4c4d769ab7b01dab8ff8c66209f992de98095a00 (patch) | |
tree | a9bc6cbd228f0b0a3a6dc1c43ef5d467da7ff933 /gdb/rust-parse.c | |
parent | a2c0d041fdbf9d661099e31629c96cdd666e8b83 (diff) | |
download | binutils-4c4d769ab7b01dab8ff8c66209f992de98095a00.zip binutils-4c4d769ab7b01dab8ff8c66209f992de98095a00.tar.gz binutils-4c4d769ab7b01dab8ff8c66209f992de98095a00.tar.bz2 |
[gdb/go] Fix literal truncation
Make sure we error out on overflow instead of truncating in all cases.
The current implementation of parse_number contains a comment about PR16377,
but that's related to C-like languages. In absence of information of whether
the same fix is needed for go, take the conservative approach and keep
behaviour for decimals unchanged.
Tested on x86_64-linux, with a build with --enable-targets=all.
Diffstat (limited to 'gdb/rust-parse.c')
0 files changed, 0 insertions, 0 deletions