]> git.saurik.com Git - redis.git/commit
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:36 +0000 (10:28 +0200)
commitedfaa64f49ecaf5183ce6b6e0855c4c679445042
tree3efafc7ccf3ea9d6e0d75711599607c6bef7ca24
parent13732168a50d86a31a7bf01dad8038e316120afb
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