Unverified Commit 789c94fe authored by Meir Shpilraien (Spielrein)'s avatar Meir Shpilraien (Spielrein) Committed by GitHub
Browse files

Added test to verify loading Lua binary payload is not possible (#10583)

The tests verify that loading a binary payload to the Lua interpreter raises an error.
The Lua code modification was done here: fdf9d455
which force the Lau interpreter to always use the text parser.
parent a9d5cfa9
...@@ -735,6 +735,12 @@ start_server {tags {"scripting"}} { ...@@ -735,6 +735,12 @@ start_server {tags {"scripting"}} {
return redis.acl_check_cmd('invalid-cmd','arg') return redis.acl_check_cmd('invalid-cmd','arg')
} 0} } 0}
} }
test "Binary code loading failed" {
assert_error {ERR *attempt to call a nil value*} {run_script {
return loadstring(string.dump(function() return 1 end))()
} 0}
}
} }
# Start a new server since the last test in this stanza will kill the # Start a new server since the last test in this stanza will kill the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment