projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcec5de
)
ubsan: next_char_of_string signed integer overflow
author
Alan Modra
<amodra@gmail.com>
Sat, 1 Jan 2022 03:23:32 +0000
(13:53 +1030)
committer
Alan Modra
<amodra@gmail.com>
Sat, 1 Jan 2022 03:52:13 +0000
(14:22 +1030)
Squash another totally useless fuzz report that I should have ignored.
* read.c (next_char_of_string): Avoid integer overflow.
gas/read.c
patch
|
blob
|
history
diff --git
a/gas/read.c
b/gas/read.c
index cd82c83adeba22d27bce712275928d5dc9ce50ed..6c8b7c3efdb23320e3e1b4338488b34d1ab8cf73 100644
(file)
--- a/
gas/read.c
+++ b/
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++;