Skip to content
Snippets Groups Projects
Commit ed520678 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

Fix bounds check in ocResolve_PEi386 for relocation values.

The old test was wrong at least for gcc and the value -2287728808L.

It also relied on implementation defined behaviour (right shift
on a negative value), which might or might not be ok.
Either way it's now a simple comparison which will always work.
parent b2d47536
No related branches found
Tags ghc-8.0.1-rc2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment