mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
ubsan: next_char_of_string signed integer overflow
Squash another totally useless fuzz report that I should have ignored. * read.c (next_char_of_string): Avoid integer overflow.
This commit is contained in:
@ -5642,7 +5642,7 @@ next_char_of_string (void)
|
||||
case '8':
|
||||
case '9':
|
||||
{
|
||||
long number;
|
||||
unsigned number;
|
||||
int i;
|
||||
|
||||
for (i = 0, number = 0;
|
||||
@ -5660,7 +5660,7 @@ next_char_of_string (void)
|
||||
case 'x':
|
||||
case 'X':
|
||||
{
|
||||
long number;
|
||||
unsigned number;
|
||||
|
||||
number = 0;
|
||||
c = *input_line_pointer++;
|
||||
|
Reference in New Issue
Block a user