Fixed off-by-one bug in memory access check.

This commit is contained in:
Ove Kaaven 1999-05-09 15:59:57 +00:00 committed by Alexandre Julliard
parent 450bc798c2
commit b6ca7a556d
1 changed files with 1 additions and 1 deletions

View File

@ -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