projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubsan: crx: index 5 out of bounds for type 'operand_desc const[5]'
[deliverable/binutils-gdb.git]
/
opcodes
/
crx-dis.c
diff --git
a/opcodes/crx-dis.c
b/opcodes/crx-dis.c
index 38347486169f107d74ffab7db86ed3dc176b9ce6..e44fca111145ca0b0781b933109a1685bef50f80 100644
(file)
--- a/
opcodes/crx-dis.c
+++ b/
opcodes/crx-dis.c
@@
-105,7
+105,7
@@
get_number_of_operands (void)
{
int i;
- for (i = 0; i
nstruction->operands[i].op_type && i < MAX_OPERANDS
; i++)
+ for (i = 0; i
< MAX_OPERANDS && instruction->operands[i].op_type
; i++)
;
return i;
This page took
0.026659 seconds
and
4
git commands to generate.