Conversation
The patch rename the name of a variable with module version to `_LUZER_VERSION` for consistency with other similar variables.
Use stack allocation instead heap allocation for `so_path`, no reason to use heap here.
The patch fixes an incorrect parsing of libFuzzer flags passed to `luzer`. Co-authored-by: Sergey Bronnikov <estetus@gmail.com> Fixes #13
While extending tests it is often required to append additional path where Lua or Lua C auxiliary modules are located to LUA_PATH or LUA_CPATH environment variables. Due to insane semicolon interpolation in CMake strings (that converts such string to a list as a result), we need to escape semicolon in LUA_PATH/LUA_CPATH strings while building the resulting value. The patch introduce MakeLuaPath.cmake module to make LUA_PATH and LUA_CPATH definition convenient with <make_lua_path> helper. This function takes all paths given as a variable list argument, joins them in a reverse order by a semicolon and yields the resulting string to a specified CMake variable.
The patch introduce a Lua initialization script that loads a Lua C luzer module. Needed for the following commit.
The patch brings support of LibFuzzer command-line options [1]. The options passed to `Fuzz()` function will be merged with command-line options, but command-line options have higher priority. ``` LUA_PATH="./luzer/?.lua;;" LUA_CPATH="./build/luzer/?.so;;" \ tarantool examples/example_basic.lua -runs=100 -max_len=1024 ``` 1. https://llvm.org/docs/LibFuzzer.html#options
0cb4656 to
36c801a
Compare
Closed
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.
No description provided.