Commit 5ffea0c6 authored by Tamar Christina's avatar Tamar Christina Committed by Marge Bot

Fix overflow.

parent 4056b966
Pipeline #14279 passed with stages
in 560 minutes and 43 seconds
......@@ -1255,7 +1255,7 @@ ocVerifyImage_PEi386 ( ObjectCode* oc )
*/
COFF_reloc* rel = (COFF_reloc*)
myindex ( sizeof_COFF_reloc, reltab, 0 );
noRelocs = rel->VirtualAddress;
noRelocs = rel->VirtualAddress - 1;
relocs_offset = 1;
} else {
noRelocs = sectab_i->NumberOfRelocations;
......
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