]> git.saurik.com Git - redis.git/commit - tests/unit/scripting.tcl
Scripting: require at least one argument for redis.call().
authorantirez <antirez@gmail.com>
Fri, 31 Aug 2012 08:22:21 +0000 (10:22 +0200)
committerantirez <antirez@gmail.com>
Fri, 31 Aug 2012 08:28:13 +0000 (10:28 +0200)
commit46c31a150a0e6a67eaaf4b1e1146ec815cc1355e
tree14340be8fadbb6d4591f5ca855ebe8af12091cfb
parent6276434ad22ded9f5bf9997137c311e447154908
Scripting: require at least one argument for redis.call().

Redis used to crash with a call like the following:

    EVAL "redis.call()" 0

Now the explicit check for at least one argument prevents the problem.

This commit fixes issue #655.
src/scripting.c
tests/unit/scripting.tcl