diff options
author | Vy Nguyen <vyng@google.com> | 2023-08-07 13:41:46 -0400 |
---|---|---|
committer | Vy Nguyen <vyng@google.com> | 2023-08-09 09:54:32 -0400 |
commit | 2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad (patch) | |
tree | 24b972bd0be85fd5b1ae73cb1f3e6504e26def96 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f6ee4e3f5562acfb11f3c36f555e37246aaeefea (diff) | |
download | llvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.zip llvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.tar.gz llvm-2d873d5aa4f75053a9b74610bc96d7f7e65ee3ad.tar.bz2 |
[lld-macho]Rework error-checking in peeking at first-member in archive to avoid segfault.
Details:
calling getMemoryBufferRef() on an empty archive can trigger segfault so the code should check before calling this.
this seems like a bug in the Archive API but that can be fixed separately.
P.S: follow up to D156468
Differential Revision: https://reviews.llvm.org/D157300
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions