| Issue |
180828
|
| Summary |
[llvm-isel-fuzzer] Crash when corpus contains malformed modules
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
QuantumSegfault
|
If the test corpus directory passed to `llvm-isel-fuzzer` contains a non-empty file that isn't a valid LLVM bitcode module (e.g. a hidden `.DS_Store` on macOS), it will simply crash.
Likely because we assume that "parseModule" succeeded, and then dereference what ends up being a null pointer as we enter `Mutator->mutateModule`. A better error message or a silent skip of the bad bitcode would be helpful.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs