Fixed intermittent crash when looking for an invalid signature (bug 5301, r=fyren).
This commit is contained in:
parent
f46c58deaa
commit
c15a91dbcc
@ -116,7 +116,7 @@ void *MemoryUtils::FindPattern(const void *libPtr, const char *pattern, size_t l
|
|||||||
}
|
}
|
||||||
|
|
||||||
ptr = reinterpret_cast<char *>(lib.baseAddress);
|
ptr = reinterpret_cast<char *>(lib.baseAddress);
|
||||||
end = ptr + lib.memorySize;
|
end = ptr + lib.memorySize - 1;
|
||||||
|
|
||||||
while (ptr < end)
|
while (ptr < end)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user