[Tarantool-patches] [PATCH luajit 0/3] Fix descriptor leak in loadfile
Sergey Kaplun
skaplun at tarantool.org
Thu Jun 5 08:44:17 MSK 2025
This patch set fixes the possible descriptor leak in the `loadfile()`
in case of the error.
The first patch adds the Valgrind configuration to the corresponding CI
workflow to test the descriptor leakage.
The last two fix two similar scenarios of the leak.
Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1249-loadfile-fd-leak
Related issues:
* https://github.com/LuaJIT/LuaJIT/issues/1249
* https://github.com/tarantool/tarantool/issues/11278
Mike Pall (2):
Fix potential file descriptor leak in luaL_loadfile*().
Fix another potential file descriptor leak in luaL_loadfile*().
Sergey Kaplun (1):
ci: add track-fds Valgrind scenario
.github/workflows/valgrind-testing.yaml | 9 ++-
src/lj_load.c | 19 +++---
.../lj-1249-loadfile-fd-leak.test.lua | 59 +++++++++++++++++++
test/tarantool-tests/utils/CMakeLists.txt | 1 +
4 files changed, 78 insertions(+), 10 deletions(-)
create mode 100644 test/tarantool-tests/lj-1249-loadfile-fd-leak.test.lua
--
2.49.0
More information about the Tarantool-patches
mailing list