Describe the bug GETRANGE mykey -200 -100 returns a non-empty string

redis> GETRANGE mykey -200 -100
"T"

To reproduce

  1. Go to https://redis.io/docs/latest/commands/getrange/
  2. Submit GETRANGE mykey -200 -100

Expected behavior

Should return an empty string due to incorrect range specified

Additional information

Reproduced on 7.2.4

Bonus

redis> getrange mykey -0 2
(error) value is not an integer or out of range

Comment From: sundb

thanks, it's fixed in https://github.com/redis/redis/pull/12272

Comment From: Yury-Fridlyand

good news! Sorry, I failed to find that.