This is a followup to rL333496.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Object/MachOObjectFile.cpp | ||
---|---|---|
110 ↗ | (On Diff #149152) | Is the goal to ensure the caller did the check or should we make this a runtime check? |
lib/Object/MachOObjectFile.cpp | ||
---|---|---|
110 ↗ | (On Diff #149152) | To ensure the caller does the check and didn't rely on the behavior of StringRef::substr from https://reviews.llvm.org/rL333496. I don't think it's worth making it a runtime check. |
lib/Object/MachOObjectFile.cpp | ||
---|---|---|
110 ↗ | (On Diff #149152) | Alright, I was worried this might trigger in OSS-fuzz but it sounds like an assertion is what we want here. Thanks for confirming! |