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: fdf9d455098f54f7666c702ae464e6ea21e25411 which force the Lau interpreter to always use the text parser.
This commit is contained in:
parent
a9d5cfa99b
commit
789c94fece
@ -735,6 +735,12 @@ start_server {tags {"scripting"}} {
|
||||
return redis.acl_check_cmd('invalid-cmd','arg')
|
||||
} 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user