Skip to content

BUG: INCR #2183

@LRagji

Description

@LRagji

Page https://redis.io/docs/latest/commands/incr

The page states return type of INCR & DECR is the integer number after incrementing, but when i do the following excersie around, the return value is garbled or overflows.

Steps to reproduce:

  1. Take max of signed 64 bit number and deduct 1 from it = 9223372036854775807-1 = 9223372036854775806 (This is within specs of redis to increment).
  2. set a 9223372036854775806
  3. incr a
  4. return 9223372036854776000 instead of 9223372036854775807
  5. Same for decr

Not tested INCRby or DECRby

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions