{"action":"created","issue":{"url":"https://api.github.com/repos/yinqiwen/ardb/issues/210","labels_url":"https://api.github.com/repos/yinqiwen/ardb/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/yinqiwen/ardb/issues/210/comments","events_url":"https://api.github.com/repos/yinqiwen/ardb/issues/210/events","html_url":"https://github.com/yinqiwen/ardb/issues/210","id":114781860,"number":210,"title":"bug in setRange","user":{"login":"limbo127","id":1582800,"avatar_url":"https://avatars.githubusercontent.com/u/1582800?v=3","gravatar_id":"","url":"https://api.github.com/users/limbo127","html_url":"https://github.com/limbo127","followers_url":"https://api.github.com/users/limbo127/followers","following_url":"https://api.github.com/users/limbo127/following{/other_user}","gists_url":"https://api.github.com/users/limbo127/gists{/gist_id}","starred_url":"https://api.github.com/users/limbo127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limbo127/subscriptions","organizations_url":"https://api.github.com/users/limbo127/orgs","repos_url":"https://api.github.com/users/limbo127/repos","events_url":"https://api.github.com/users/limbo127/events{/privacy}","received_events_url":"https://api.github.com/users/limbo127/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T10:10:17Z","updated_at":"2015-11-04T08:31:39Z","closed_at":null,"body":"Hello, I need to use setRange and getRange, and : \r\nWith redis server : \r\nredis> setrange TEST 10 AAAA\r\n(integer) 14\r\nredis> get TEST\r\n\"\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000AAAA\"\r\nredis> setrange TEST 0 BBBB\r\n(integer) 14\r\nredis> get TEST\r\n\"BBBB\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000AAAA\"\r\nredis> \r\n\r\n\r\nwith ardb :\r\nredis /tmp/ardb.sock> setrange TEST 10 AAAA\r\n(integer) 14\r\nredis /tmp/ardb.sock> get TEST\r\n\"\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00AAAA\"\r\nredis /tmp/ardb.sock> setrange TEST 0 BBBB\r\n(integer) 4\r\nredis /tmp/ardb.sock> get TEST\r\n\"BBBB\"\r\nredis /tmp/ardb.sock> \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yinqiwen/ardb/issues/comments/153634643","html_url":"https://github.com/yinqiwen/ardb/issues/210#issuecomment-153634643","issue_url":"https://api.github.com/repos/yinqiwen/ardb/issues/210","id":153634643,"user":{"login":"limbo127","id":1582800,"avatar_url":"https://avatars.githubusercontent.com/u/1582800?v=3","gravatar_id":"","url":"https://api.github.com/users/limbo127","html_url":"https://github.com/limbo127","followers_url":"https://api.github.com/users/limbo127/followers","following_url":"https://api.github.com/users/limbo127/following{/other_user}","gists_url":"https://api.github.com/users/limbo127/gists{/gist_id}","starred_url":"https://api.github.com/users/limbo127/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limbo127/subscriptions","organizations_url":"https://api.github.com/users/limbo127/orgs","repos_url":"https://api.github.com/users/limbo127/repos","events_url":"https://api.github.com/users/limbo127/events{/privacy}","received_events_url":"https://api.github.com/users/limbo127/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T08:31:39Z","updated_at":"2015-11-04T08:31:39Z","body":"I change in /src/command/t_string.cpp \r\nline 519\r\n            else\r\n            {\r\n                ss = sdsnewlen(NULL, offset + value.size());\r\n                memset(ss, 0, offset + value.size());\r\n            }\r\n\r\nby else if (ss==NULL) \r\nit seems to be solve this bug\r\n"}}