Skip to content

Fix OBJECT arity - #1870

Merged
antirez merged 1 commit into
redis:unstablefrom
michael-grunder:object_arity
Jul 14, 2014
Merged

antirez merged 1 commit into
redis:unstablefrom
michael-grunder:object_arity

Conversation

@michael-grunder

Copy link
Copy Markdown
Contributor

Previously, the command definition for the OBJECT command specified
a minimum of two args (and that it was variadic), which meant that
if you sent this:

OBJECT foo

When cluster was enabled, it would result in an assertion/SEGFAULT
when Redis was attempting to extract keys.

It appears that OBJECT is not variadic, and only ever takes 3 args.

https://gist.github.com/michael-grunder/25960ce1508396d0d36a

Previously, the command definition for the OBJECT command specified
a minimum of two args (and that it was variadic), which meant that
if you sent this:

OBJECT foo

When cluster was enabled, it would result in an assertion/SEGFAULT
when Redis was attempting to extract keys.

It appears that OBJECT is not variadic, and only ever takes 3 args.

https://gist.github.com/michael-grunder/25960ce1508396d0d36a
@mattsta

mattsta commented Jul 12, 2014

Copy link
Copy Markdown
Contributor

🌽 Looks good! Always better to be as non-crashy as possible.

antirez added a commit that referenced this pull request Jul 14, 2014
@antirez
antirez merged commit 9e7e0cd into redis:unstable Jul 14, 2014
@antirez

antirez commented Jul 14, 2014

Copy link
Copy Markdown
Contributor

Thank you, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants