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
..
2014-09-29 06:49:08 -04:00
2016-06-15 11:49:49 +02:00
2015-12-11 14:27:08 +01:00
2015-09-14 12:35:55 +02:00
2015-10-09 09:47:17 +02:00
2012-04-18 11:34:18 +02:00
2010-10-15 12:54:53 +02:00
2014-12-03 10:38:56 +01:00