mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Avoid potential overflow in range check. #273431.
(Alexandre Duret-Lutz, adl@gnu.org) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12173
This commit is contained in:
parent
086294dbed
commit
dcdaa88f60
@ -2036,7 +2036,7 @@ UWord evalCfiExpr ( XArray* exprs, Int ix,
|
||||
a = evalCfiExpr( exprs, e->Cex.Deref.ixAddr, eec, ok );
|
||||
if (!(*ok)) return 0;
|
||||
if (a < eec->min_accessible
|
||||
|| (a + sizeof(UWord) - 1) > eec->max_accessible) {
|
||||
|| a > eec->max_accessible - sizeof(UWord) + 1) {
|
||||
*ok = False;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user