Commit Diff


commit - cce8f7fe8e0943aa21fbd30c9c9eaf7efe53419c
commit + 9f696e549e58d5f1498dc3706505f3cd4048603f
blob - /dev/null
blob + 6dc046d82b6536d4cde3d98fdd11ac1e7bfe95e8 (mode 644)
--- /dev/null
+++ README.md
@@ -0,0 +1,21 @@
+## Fuzzing Tarantool Lua API
+
+Fuzzing tests for Tarantool built-in Lua modules -
+https://www.tarantool.io/en/doc/latest/reference/reference_lua/
+
+### Usage
+
+Build Tarantool:
+
+```sh
+$ CFLAGS="-fsanitize=fuzzer-no-link" LDFLAGS="-fsanitize=fuzzer-no-link" CC=clang CXX=clang++ cmake -S . -B build -DENABLE_BUNDLED_LIBCURL=OFF -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON -DENABLE_BACKTRACE=OFF
+$ cmake --build build --parallel
+```
+
+Run tests:
+
+```sh
+$ luarocks --local install luzer
+$ git clone https://github.com/ligurio/tarantool-corpus tests/tarantool-corpus
+$ LSAN_OPTIONS=suppressions=$(pwd)/asan/lsan.supp ASAN_OPTIONS=heap_profile=0:unmap_shadow_on_exit=1:print_suppressions=0 tarantool tarantool_csv.lua
+```