- llvm-as/llvm-dis tools do not check for input filename length.
- llvm-dis does not verify the Streamer variable against nullptr properly, so the M variable could be uninitialized (e.g. if the input file does not exist) leading to null dref.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-as/llvm-as.cpp | ||
---|---|---|
67 ↗ | (On Diff #25254) | Can you use StringRef::endswith(".ll") instead? |
Comment Actions
Can you use StringRef::endswith(".ll") instead?
Sure, done. It also may be useful to use llvm::StringRef::endswith_lower().
Comment Actions
LGTM with one comment.
tools/llvm-as/llvm-as.cpp | ||
---|---|---|
67 ↗ | (On Diff #25330) | IFN.drop_back(3).str() (here and below) |