-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leaks in Lua: luaL_addgsub, luaL_gsub, luaL_loadbuffer #28
Comments
ligurio
added a commit
to ligurio/lua-c-api-corpus
that referenced
this issue
Jul 23, 2023
OSS-Fuzz allows passing custom options to a fuzzing test, see [1] and [2]. These options files are specific for OSS-Fuzz. However, it is convenient to store them out of oss-fuzz repository. Patch adds three options files for tests luaL_loadbuffer_test, luaL_addgsub_test and luaL_gsub_test with disabled leaks detection (`detect_leaks=0`). 1. https://github.com/google/oss-fuzz/blob/4d1f3ec4df81f24605f442fdd42d1769161080ae/infra/base-images/base-runner/parse_options.py#L22 2. https://google.github.io/oss-fuzz/getting-started/new-project-guide/#dictionaries Related to ligurio/lua-c-api-tests#25 Related to ligurio/lua-c-api-tests#28
DonggeLiu
pushed a commit
to google/oss-fuzz
that referenced
this issue
Aug 16, 2023
Corpus for test lua_loadbuffer_proto is huge, it contains about 80k files and zip reports an error on compression: `/usr/bin/zip: Argument list too long`. The patch fixes that by passing a list of files via stdin. Disable leak detection: - ligurio/lua-c-api-tests#25 - ligurio/lua-c-api-tests#28
LeakSanitizer temporarily disabled in 98db57a95c9da887941e4eac0c3c00bfda4310ac using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initially reported in #25 and oss-fuzz#58707.
How to reproduce
luaL_addgsub_test:
luaL_gsub_test:
Is it a false positive or not?
The text was updated successfully, but these errors were encountered: