Skip to content

rts/linker/PEi386: Fix incorrect overflow condition

Ben Gamari requested to merge wip/T15808 into master

In #15808 (closed) @awson noticed that the overflow check for IMAGE_REL_AMD64_ADDR32NB relocations does not correctly account for sign extension. This patch fixes the logic in this case and folds together the now-quite-similar logic for IMAGE_REL_AMD64_ADDR32NB and IMAGE_REL_AMD64_REL32.

Merge request reports