Skip to content
Snippets Groups Projects
Commit b6ca7a55 authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

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

parent 450bc798
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment