Repository navigation
luzer: support multiple corpus directories - #108
Merged
Merged
Conversation
ligurio
force-pushed
the
ligurio/gh-xxxx-fix-oss-fuzz-coverage
branch
from
October 31, 2026 13:58
33a3912 to
44682da
Compare
34 of 39 tasks
ligurio
force-pushed
the
ligurio/gh-xxxx-fix-oss-fuzz-coverage
branch
3 times, most recently
from
November 2, 2026 06:07
4b9fd1e to
fd1b41b
Compare
Buristan
reviewed
Nov 3, 2026
Buristan
left a comment
Collaborator
There was a problem hiding this comment.
Sergey, thanks for the patch set!
I'll proceed with the review per-patch below.
[PATCH 1/2] luzer: move lua_rawlen compatibility shim to compat.h
LGTM, but commit length is more than 50 symbols.
[PATCH 2/2] luzer: support multiple corpus directories
LGTM, after fixing my comment below.
ligurio
force-pushed
the
ligurio/gh-xxxx-fix-oss-fuzz-coverage
branch
3 times, most recently
from
November 3, 2026 17:21
6d52b65 to
668546d
Compare
The shim mapping lua_rawlen() to lua_objlen() for Lua 5.1 and LuaJIT lived in custom_mutator_lib.c. Move it to compat.h so that other translation units can use lua_rawlen() as well.
Owner
Author
Fixed. |
Positional command-line arguments were all stored in a single "corpus" flag, so each one overwrote the previous one and only the last path reached libFuzzer. This broke merge mode (-merge=1 NEW_CORPUS OLD_CORPUS) and, as a result, corpus pruning and corpus backups in OSS-Fuzz. Collect positional arguments into a separate list instead of a flag, pass it to the C implementation as the last argument, and append it to argv after the flags, preserving the order. LibFuzzer treats the first directory as the output one in merge mode, so the order is significant. Corpus directories on the command line take precedence over the `corpus` option, as they did before multiple positional arguments were supported; the option is used only as a fallback when no directory is given on the command line. Validate corpus entries before allocating argv, so that a bad element cannot make luaL_error() longjmp past the cleanup and leak the array. Follows up google/oss-fuzz#14859
ligurio
force-pushed
the
ligurio/gh-xxxx-fix-oss-fuzz-coverage
branch
from
November 3, 2026 17:59
668546d to
1577cdc
Compare
Buristan
approved these changes
Nov 4, 2026
Buristan
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the fixes. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows up google/oss-fuzz#14859
Part of tarantool/tarantool#11250