Fixed intermittent crash when looking for an invalid signature (bug 5301, r=fyren).
authorAsher Baker <asherkin@gmail.com>
Sun May 27 01:51:02 2012 +0100 (2012-05-27)
changeset 3508a2b92c4a2544
parent 3507 d1b6fde18611
child 3509 f5494c328158
Fixed intermittent crash when looking for an invalid signature (bug 5301, r=fyren).
core/logic/MemoryUtils.cpp
     1.1 --- a/core/logic/MemoryUtils.cpp	Sun May 27 01:50:57 2012 +0100
     1.2 +++ b/core/logic/MemoryUtils.cpp	Sun May 27 01:51:02 2012 +0100
     1.3 @@ -116,7 +116,7 @@
     1.4  	}
     1.5  
     1.6  	ptr = reinterpret_cast<char *>(lib.baseAddress);
     1.7 -	end = ptr + lib.memorySize;
     1.8 +	end = ptr + lib.memorySize - 1;
     1.9  
    1.10  	while (ptr < end)
    1.11  	{