Skip to content

JSON.ARRTRIM crashes with some negative start index #485

Closed

Description

@oshadmi

On redislabs/redismod:edge
The following array range cause a crash

json.set arr . '{ "arr": [0, 1, 2, 3, 2, 1, 0] }'
OK
json.arrtrim arr .arr -1 0

And also other ranges, such as

json.arrtrim arr .arr -4 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions