- 20 Apr, 2016 20 commits
-
-
not-a-robot authored
docs: Add changelog for upcoming version and note about status of README
-
not-a-robot authored
Fix potential race in 'invalid timeout' tests It's possible for the call to connect() to succeed on the very first try, in which case the logic for checking for invalid timeout fields is never executed. When this happens, the tests fail because they expect a REDIS_ERR_IO but no such failure has occurred. Tests aside, this is a potential source of irritating and hard-to-find intermittent bugs. This patch forces the validation to occur early so that we get predictable behavior whenever an invalid timeout is specified.
-
not-a-robot authored
Update read.c static char *seekNewline(char *s, size_t len) : this function can not parse the string,such as "hello world\r". the case that the last char is '\r'.
-
not-a-robot authored
remove unnecessory code remove some unnecessory code. It is not used any other parts
-
Jan-Erik Rediger authored
[ci-skip]
-
not-a-robot authored
fix: Remove backwards compatibility macro's Closes #296 BREAKING CHANGE: This removes the redisReplyReader* functions, which are already replaced by redisReader* functions. It renames `redisReplyReaderSetPrivdata`, `redisReplyReaderGetObject` and `redisReplyReaderGetError` to `redisReaderSetPrivdata`, `redisReaderGetObject` and `redisReaderGetError`.
-
charsyam authored
-
not-a-robot authored
Fix cygwin
-
not-a-robot authored
Updated sds
-
charsyam authored
-
Jan-Erik Rediger authored
-
owent authored
-
owent authored
- fix macro problem in mingw-gcc - fix typedef in cygwin
-
not-a-robot authored
fmacros.h: Fix warning when compiled with -Wundef When compiling with the flag `-Wundef` the following warning is emitted: ``` [ 40%] Building C object CMakeFiles/hiredis-STATIC.dir/read.c.o In file included from /data/files/users/jerry/github/hiredis/read.c:33:0: /data/files/users/jerry/github/hiredis/fmacros.h:17:5: warning: "__APPLE__" is not defined [-Wundef] #if __APPLE__ && __MACH__ ^ In file included from /usr/include/string.h:25:0, from /data/files/users/jerry/github/hiredis/read.c:34: ```
-
Jan-Erik Rediger authored
Closes #296 BREAKING CHANGE: This removes the redisReplyReader* functions, which are already replaced by redisReader* functions. It renames `redisReplyReaderSetPrivdata`, `redisReplyReaderGetObject` and `redisReplyReaderGetError` to `redisReaderSetPrivdata`, `redisReaderGetObject` and `redisReaderGetError`.
-
Jan-Erik Rediger authored
-
not-a-robot authored
Prevent buffer overflow when formatting the error strncat might copy n+1 bytes (n bytes from the source plus a terminating nul byte). Also strncat appends after the first found nul byte. But all we pass is a buffer we might not have zeroed out already. Closes #380
-
Jan-Erik Rediger authored
-
clark.kang authored
-
not-a-robot authored
test.c: Fix shadowed name with typedef when compiling with -Wshadow Fixes: ``` /data/files/users/jerry/github/hiredis/test.c: In function 'test_free_null': /data/files/users/jerry/github/hiredis/test.c:331:11: warning: declaration of 'redisContext' shadows a global declaration [-Wshadow] void *redisContext = NULL; ^ In file included from /data/files/users/jerry/github/hiredis/test.c:13:0: /data/files/users/jerry/github/hiredis/hiredis.h:161:3: note: shadowed declaration is here } redisContext; ^ ```
-
- 17 Apr, 2016 2 commits
-
-
Jerry Jacobs authored
-
Jerry Jacobs authored
-
- 11 Apr, 2016 1 commit
-
-
DongwenHuang authored
static char *seekNewline(char *s, size_t len) : this function can not parse the string,such as "hello world\r". the case that the last char is '\r'.
-
- 26 Mar, 2016 1 commit
-
-
Jan-Erik Rediger authored
Closes #361
-
- 18 Nov, 2015 2 commits
-
-
Jan-Erik Rediger authored
strncat might copy n+1 bytes (n bytes from the source plus a terminating nul byte). Also strncat appends after the first found nul byte. But all we pass is a buffer we might not have zeroed out already. Closes #380
-
Tom Lee authored
It's possible for the call to connect() to succeed on the very first try, in which case the logic for checking for invalid timeout fields is never executed. When this happens, the tests fail because they expect a REDIS_ERR_IO but no such failure has occurred. Tests aside, this is a potential source of irritating and hard-to-find intermittent bugs. This patch forces the validation to occur early so that we get predictable behavior whenever an invalid timeout is specified.
-
- 27 Oct, 2015 2 commits
-
-
Jan-Erik Rediger authored
fixing typos
-
charsyam authored
-
- 18 Oct, 2015 1 commit
-
-
Jan-Erik Rediger authored
fix snprintf format string
-
- 05 Oct, 2015 1 commit
-
-
Sergey Polovko authored
-
- 16 Sep, 2015 2 commits
-
-
Jan-Erik Rediger authored
-
olgeni authored
-
- 14 Sep, 2015 2 commits
-
-
Jan-Erik Rediger authored
Easier to read, easier to sort.
-
Jan-Erik Rediger authored
This reverts commit 1db17f25. If the `REDIS_CONNECTED` flag is cleared, the async onDisconnect callback function will never be called. This causes problems as the disconnect is never reported back to the user. Closes #359
-
- 25 Aug, 2015 1 commit
-
-
Jan-Erik Rediger authored
-
- 24 Aug, 2015 2 commits
-
-
Jerry Jacobs authored
-
Jan-Erik Rediger authored
-
- 27 Jul, 2015 3 commits
-
-
Jan-Erik Rediger authored
-
Jan-Erik Rediger authored
Fixes #335.
-
Jan-Erik Rediger authored
-