Browse Source

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.
binutils-2_38-branch
Alan Modra 5 years ago
parent
commit
b685de86cc
  1. 4
      gas/read.c

4
gas/read.c

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

Loading…
Cancel
Save