box: forbid non-string types in key_def.new()
Currently if a non-string type is passed to luaT_key_def_set_part, lua_tolstring returns null-pointer type_name, which is passed to a string formatting function in diag_set. Closes #5222 NO_DOC=bugfix (cherry picked from commit 5215f3f3)
Showing
- changelogs/unreleased/gh-5222-key_def-type-null.md 4 additions, 0 deletionschangelogs/unreleased/gh-5222-key_def-type-null.md
- src/box/lua/key_def.c 4 additions, 2 deletionssrc/box/lua/key_def.c
- test/box-luatest/gh_5222_key_def_invalid_type_test.lua 28 additions, 0 deletionstest/box-luatest/gh_5222_key_def_invalid_type_test.lua
Loading
Please register or sign in to comment