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:
Alan Modra
2022-01-01 13:53:32 +10:30
parent fcec5debef
commit b685de86cc

View File

@ -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++;