Fix #123: box.index.count and box.index.iterator do not check arguments
This patch adds lua_checkfield function - a wrapper for lua_tofield that raises an error if Lua type can not be converted to lua_field structure. The function should be used instead of lua_tofield in all bindings where custom types are not supported.
Showing
- src/box/box_lua.cc 21 additions, 14 deletionssrc/box/box_lua.cc
- test/big/iterator.result 8 additions, 0 deletionstest/big/iterator.result
- test/big/iterator.test 3 additions, 0 deletionstest/big/iterator.test
- test/big/lua.result 13 additions, 1 deletiontest/big/lua.result
- test/big/lua.test 4 additions, 0 deletionstest/big/lua.test
Loading
Please register or sign in to comment