diff options
author | Heiko Eißfeldt <heiko@hexco.de> | 2024-12-09 10:39:50 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-12-09 13:16:49 +0100 |
commit | 2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b (patch) | |
tree | f475ca9771e92abc0f79a31110ce62a0d7c972eb /gcc/config/glibc-stdint.h | |
parent | 2c9b69594665a87f74c6d5cb39fc6e075d75d771 (diff) | |
download | gcc-2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b.zip gcc-2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b.tar.gz gcc-2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b.tar.bz2 |
replace atoi with stroul in c_parser_gimple_parse_bb_spec [PR114541]
The full treatment of these invalid values was considered out of
scope for this patch.
PR c/114541
* gimple-parser.cc (c_parser_gimple_parse_bb_spec):
Use strtoul with ERANGE check instead of atoi to avoid UB
and detect invalid __BB#.
Signed-off-by: Heiko Eißfeldt <heiko@hexco.de>
Diffstat (limited to 'gcc/config/glibc-stdint.h')
0 files changed, 0 insertions, 0 deletions