diff --git a/test/box/lua.result b/test/box/lua.result index 67f9e68bc5c7191d02c53109bff6fd99e8a60b35..ad7b0bc3da83b16365e53036eec92a18d5e46cee 100644 --- a/test/box/lua.result +++ b/test/box/lua.result @@ -237,6 +237,10 @@ lua function f1() return f1 end ... call f1() An error occurred: ER_PROC_RET, 'Return type 'function' is not supported in the binary protocol' +lua box.process(13, box.pack('iiippp', 0, 0, 99999, 99999, 'wrong', 'tuple')) +--- +error: 'Illegal parameters, tuple_new(): incorrect tuple format' +... insert into t0 values (1, 'test box delete') Insert OK, 1 row affected call box.delete('0', '���') diff --git a/test/box/lua.test b/test/box/lua.test index df33d12b8e9be4ec4987b854bdc960bb7260c78b..1216a89391b234ee1c6f14b74d7376b3858e0a76 100644 --- a/test/box/lua.test +++ b/test/box/lua.test @@ -63,6 +63,9 @@ exec sql "call f1()" exec admin "lua function f1() return f1 end" exec sql "call f1()" +# Test case for gh-140, crash with wrong box.process(..) call +exec admin "lua box.process(13, box.pack('iiippp', 0, 0, 99999, 99999, 'wrong', 'tuple'))" + exec sql "insert into t0 values (1, 'test box delete')" exec sql "call box.delete('0', '\1\0\0\0')" exec sql "call box.delete('0', '\1\0\0\0')"