Skip to content
Commit 4af1522a authored by Greg McGary's avatar Greg McGary
Browse files

[lld-macho] Rework length check when opening input files

This reverts diff D97610 (commit 0223ab03) and adds a one-line fix to verify that a `MemoryBufferRef` has sufficient length before reading a 4-byte magic number.

Differential Revision: https://reviews.llvm.org/D97757
parent 8a316045
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment