if lua function returns empty table libtarantool's iterators segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tarantool |
Fix Released
|
Medium
|
Dmitry Simonenko |
Bug Description
I have part of code like this: https:/
And I worte some tests for the code:
https:/
function test_return(...)
return { ... }
end
if we call function 'test_return' with some arguments, the code works fine, but if function returns empty table, iterators will segfault.
A test that demonstrates the problem here: https:/
Binary packet that was returned by tarantool can be found here: https:/
tarantool returned package that has length = 28 bytes, code = 0
function 'tnt_reply' returned 0 for the package, and then tnt_iter* functions segfaulted.
Changed in tarantool: | |
importance: | Undecided → Medium |
Changed in tarantool: | |
status: | Fix Committed → Fix Released |
fixed on branch libtnt_iter_fix