Commit eaae717e authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Make sure the last relocation contains some data.

parent 2f1c02e7
......@@ -1108,7 +1108,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
end = (IMAGE_BASE_RELOCATION *)(ptr + relocs->VirtualAddress + relocs->Size);
delta = ptr - base;
while (rel <= end - 1 && rel->SizeOfBlock)
while (rel < end - 1 && rel->SizeOfBlock)
{
if (rel->VirtualAddress >= total_size)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment