redict/tests/unit/type
Oran Agra adf2701cc9 fix string to double conversion, stopped parsing on \0 even if the string has more data.
getLongLongFromObject calls string2ll which has this line:
/* Return if not all bytes were used. */
so if you pass an sds with 3 characters "1\01" it will fail.

but getLongDoubleFromObject calls strtold, and considers it ok if eptr[0]==`\0`
i.e. if the end of the string found by strtold ends with null terminator

127.0.0.1:6379> set a 1
OK
127.0.0.1:6379> setrange a 2 2
(integer) 3
127.0.0.1:6379> get a
"1\x002"
127.0.0.1:6379> incrbyfloat a 2
"3"
127.0.0.1:6379> get a
"3"
2017-11-23 17:15:27 +02:00
..
hash.tcl Test: fix conditional execution of HINCRBYFLOAT representation test. 2017-02-22 12:00:09 +01:00
incr.tcl fix string to double conversion, stopped parsing on \0 even if the string has more data. 2017-11-23 17:15:27 +02:00
list-2.tcl Config: Add quicklist, remove old list options 2015-01-02 11:16:10 -05:00
list-3.tcl Test: new randomized stress tester for #3343 alike bugs. 2016-06-28 09:42:20 +02:00
list-common.tcl list test split into smaller parts 2011-07-11 11:30:46 +02:00
list.tcl make RPUSHX and LPUSHX variadic 2016-06-05 16:50:24 +02:00
set.tcl uphold the smove contract to return 0 when the element is not a member of the source set, even if source=dest 2015-04-17 09:27:54 -04:00
string.tcl Test: fixes a few tests after basic unit refactoring. 2015-02-25 10:37:52 +01:00
zset.tcl Regression test for issue #4391. 2017-10-30 13:45:46 +01:00