HomePhabricator

[COFF] Bounds check relocations

Description

[COFF] Bounds check relocations

Summary:
This would have caught the invalid object file I used in my test case in
r307726. The OOB was only caught by ASan later, which is slow and
doesn't work on some platforms. LLD should do some basic input
validation itself. This check isn't perfect, so relocations can reach
OOB by up to seven bytes, but it's better than what we had and probably
cheap.

Reviewers: ruiu

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35371

Details

Committed
rnkJul 13 2017, 1:29 PM
Differential Revision
D35371: [COFF] Bounds check relocations
Branches
Unknown
Tags
Unknown