Closed rol1510 closed 9 months ago
./quick-lint-js crash.txt
works. Only the fuzzer is affected.
Thanks for reporting! There is a real bug which affects the main program as well.
Fixed in Git commit 02a1c8949b4fc1a897afa90dc871eda74d6f9764.
Fix released in version 3.2.0.
Found this heap-buffer-overflow while working on the fuzzer ci.
Steps to reproduce:
CC=clang CXX=clang++ CFLAGS="-fsanitize=address,undefined -stdlib=libstdc++" CXXFLAGS=-fsanitize=address,undefined cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
./build-fuzz/fuzz/quick-lint-js-fuzz-lex corpus/