ideawu/ssdb

resp.cpp使用sprintf导致ssdb CoreDump

Lihuanghe opened this issue · 0 comments

ssdb version :1.9.8
重现::执行
hset Test f1 9223372036854775807
hincr Test f1 1

hincr Long类型最大值后结果变为负数,此时使用字符长度是21,使用buf[20];导致core掉。