/lua-c-api-corpus

Lua C API seed corpus and dictionaries

Primary LanguageLua

Seed corpus

The repository contains seed corpus and dictionaries for Lua fuzzing tests.

Merge corpuses

build/tests/capi/luaL_loadbuffer_proto/luaL_loadbuffer_proto_test -set_cover_merge=1 CORPUS NEW_CORPUS
build/tests/capi/luaL_loadbuffer_proto/luaL_loadbuffer_proto_test -merge=1 CORPUS NEW_CORPUS

Maintenance

To prevent repository bloat:

git rev-list --disk-usage --objects --all
git reset --soft HEAD~2000 && git commit -m "Corpus squash"
git prune --progress
git gc

Validate Lua syntax in samples:

find lua/ -name '*.lua' -print0 | xargs --null -i lua {}
find lua/ -name '*.lua' -print0 | xargs --null -i luajit {}