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:
16cceb8
)
sim: igen: fix hang when decoding boolean rule constants
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 10 Nov 2022 18:35:42 +0000
(
01:35
+0700)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 10 Nov 2022 18:40:53 +0000
(
01:40
+0700)
The parser for boolean rules fails to skip over the , separator in
the options which makes it hang forever. No dc files in the tree
use boolean rules atm which is why no one noticed.
sim/igen/ld-decode.c
patch
|
blob
|
history
diff --git
a/sim/igen/ld-decode.c
b/sim/igen/ld-decode.c
index d1c90463ca3c5f6f7d695bf6467192ebb0fa936b..51bb3e0b0a37d19c87dff427adf956933fbde854 100644
(file)
--- a/
sim/igen/ld-decode.c
+++ b/
sim/igen/ld-decode.c
@@
-131,6
+131,8
@@
load_decode_table (const char *file_name)
break;
}
chp = skip_to_separator (chp, ",");
+ if (*chp == ',')
+ ++chp;
chp = skip_spaces (chp);
}
}