mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
fix oob read in r_anal_esil_parse
This commit is contained in:
parent
0f21114112
commit
212169afb1
@ -755,7 +755,7 @@ SF - sign flag
|
||||
sf = ((st64)num)<0)?1:0;
|
||||
OF - overflow flag
|
||||
if (a>0&&b>0 && (a+b)<0)
|
||||
Set if result is too large a positive number or too small a negative number (excluding sign bit) to fit in destination operand; cleared otherwise
|
||||
Set if result is too large a positive number or too small a negative number (excluding sign bit) to fit in destination operand; cleared otherwise
|
||||
|
||||
JBE: CF = 1 || ZF = 1
|
||||
|
||||
@ -2247,7 +2247,9 @@ repeat:
|
||||
str++;
|
||||
}
|
||||
word[wordi++] = *str;
|
||||
str++;
|
||||
//is *str is '\0' in the next iteration the condition will be true
|
||||
//reading beyond the boundaries
|
||||
if (*str) str++;
|
||||
}
|
||||
word[wordi] = 0;
|
||||
if (*word) {
|
||||
|
Loading…
Reference in New Issue
Block a user