Oran Agra 43a17cc78d 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
..
2012-04-13 17:52:33 -07:00
2017-07-06 19:47:21 +08:00
2016-04-25 16:49:57 +03:00
2016-06-07 16:46:00 -04:00
2016-04-04 08:50:58 +02:00
2015-10-01 13:02:25 +02:00
2016-07-27 11:34:25 +02:00
2016-07-27 11:34:25 +02:00
2016-06-14 14:45:28 +02:00
2015-07-27 14:37:58 +02:00
2015-07-27 14:37:58 +02:00
2014-08-08 10:05:32 +02:00
2017-04-08 17:31:13 +02:00
2017-04-07 08:46:39 +02:00
2017-11-06 12:37:03 +01:00
2016-10-10 01:13:20 +09:00
2017-01-18 17:12:07 +01:00
2016-04-25 16:49:57 +03:00
2015-04-27 12:07:49 +02:00
2015-04-27 12:07:49 +02:00
2017-02-21 17:07:28 +01:00
2014-07-02 16:31:22 +02:00
2016-09-12 13:19:05 +02:00
2016-05-10 06:40:05 +02:00
2011-07-06 15:22:00 +02:00
2017-02-01 17:01:31 +01:00