[PATCH] D97610: [lld-macho] check minimum header length when opening linkable input files

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 1 17:18:03 PST 2021


smeenai added a comment.

In D97610#2595963 <https://reviews.llvm.org/D97610#2595963>, @thakis wrote:

> b) What's the motivation for this change? lld assumes that inputs are produced by a compiler or similar, and are generally valid. What problem is this solving?

I believe avoiding ASAN errors, per https://reviews.llvm.org/D97600?id=326855#inline-915154


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97610/new/

https://reviews.llvm.org/D97610



More information about the llvm-commits mailing list