- 15 Aug, 2020 1 commit
-
-
michael-grunder authored
Hiredis and Redis both contain the sds library which can cause hard to debug issues when there are ABI mismatches between the two copies. This recently happened when merging v1.0.0 into Redis because Hiredis updated sdsrange to return a value. When called from within Redis, this abi mismatch caused random failures. It's not the prettiest fix, but this commit simply renames the sds types/functions in hiredis so they can't conflict with those built in redis. Additionally we create an 'sdscompat.h' helper header to map the old symbol names to their hi_ variants.
-
- 29 Jul, 2020 1 commit
-
-
Michael Grunder authored
We need to allow our users to use redisContext->privdata as context for any RESP3 PUSH messages, which means we can't use it for managing SSL connections. Bulletpoints: * Create a secondary redisContext member for internal use only called privctx and rename the redisContextFuncs->free_privdata accordingly. * Adds a `free_privdata` function pointer so the user can tie allocated memory to the lifetime of a redisContext (like they can already do with redisAsyncContext) * Enables SSL tests in .travis.yml
-
- 09 Jul, 2020 1 commit
-
-
Michael Grunder authored
It appears that _WIN32 is always defined by MSVC whereas WIN32 may not be, depending on configuration.
-
- 07 Jun, 2020 1 commit
-
-
Michael Grunder authored
Fix overflow bug in `sdsrange`
-
- 30 May, 2020 1 commit
-
-
michael-grunder authored
-
- 24 May, 2020 1 commit
-
-
Yossi Gottlieb authored
-
- 22 May, 2020 1 commit
-
-
Michael Grunder authored
* Adds an indirection to every allocation/deallocation to allow users to plug in ones of their choosing (use custom functions, jemalloc, etc). * Gracefully handle OOM everywhere in hiredis. This should make it possible for users of the library to have more flexibility in how they handle such situations. * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent a possible overflow when transferring the task elements into a `redisReply`. * Adds a configurable `max elements` member to `redisReader` that defaults to 2^32 - 1. This can be set to "unlimited" by setting the value to zero.
-
- 09 Apr, 2020 1 commit
-
-
Michael Grunder authored
* Add CMake package configuration so hiredis can be more easily included in other projects. * Fixes hiredis_ssl such that it compiles and works in windows Co-authored-by:
nrivera <nrivera@blizzard.com> Co-authored-by:
Nick <heronr1@gmail.com>
-
- 28 Jan, 2020 1 commit
-
-
Michael Grunder authored
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
-
- 25 Nov, 2019 1 commit
-
-
Nathan Scott authored
Coverity scans found that the should_log logic in sslLogCallback is not working as expected because the variable is not correctly initialised (the conditional code before logging always sets the value to 1, which it already is).
-
- 16 Sep, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 01 Sep, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 29 Aug, 2019 2 commits
-
-
Yossi Gottlieb authored
-
Yossi Gottlieb authored
-
- 25 Aug, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 22 Aug, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 13 Aug, 2019 1 commit
-
-
Yossi Gottlieb authored
-
- 11 Apr, 2019 1 commit
-
-
Mark Nunberg authored
-
- 20 Feb, 2019 6 commits
-
-
valentino authored
-
Mark Nunberg authored
-
Mark Nunberg authored
-
Mark Nunberg authored
-
Mark Nunberg authored
-
Mark Nunberg authored
-