Fixed off-by-one bug in memory access check.
This commit is contained in:
parent
450bc798c2
commit
b6ca7a556d
|
@ -74,7 +74,7 @@ BOOL DEBUG_checkmap_bad( const char *addr, size_t size, int rwflag)
|
|||
#endif
|
||||
if ( end <= addr)
|
||||
continue;
|
||||
if (start <= addr && addr+size < end) {
|
||||
if (start <= addr && addr+size <= end) {
|
||||
if (rwflag)
|
||||
ret = (prot[0] != 'r'); /* test for reading */
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue