- 04 Oct, 2021 2 commits
-
-
michael-grunder authored
-
Yossi Gottlieb authored
This fix prevents hiredis from trying to allocate more than `SIZE_MAX` bytes, which would result in a buffer overrun. [Full Details](https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2)
-
- 03 Aug, 2020 1 commit
-
-
michael-grunder authored
-
- 29 Jul, 2020 2 commits
-
-
michael-grunder authored
-
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
-
- 26 Jul, 2020 2 commits
-
-
Michael Grunder authored
Small change to the logic introduced in #839
-
valentinogeron authored
Add an additional timeout so the user has a convenient way of controlling distinct connect and command timeouts
-
- 21 Jul, 2020 1 commit
-
-
michael-grunder authored
Static analyzer's can't tell that hi_calloc is calloc-like, and report a potential null pointer dereference. This isn't possible but it's probably smarter to make the test anyway in the event code changes.
-
- 20 Jul, 2020 4 commits
-
-
Michael Grunder authored
See #848
-
Malizia R authored
-
Michael Grunder authored
-
Michael Grunder authored
Proper support for RESP3 PUSH messages. By default, PUSH messages are now intercepted and the reply memory freed. This means existing code should work unchanged when connecting to Redis >= 6.0.0 even if `CLIENT TRACKING` were then enabled. Additionally, we define two callbacks users can configure if they wish to handle these messages in a custom way: void redisPushFn(void *privdata, void *reply); void redisAsyncPushFn(redisAsyncContext *ac, void *reply); See #825
-
- 10 Jul, 2020 1 commit
-
-
Michael Grunder authored
* Don't try to ignore SIGPIPE in Windows (it doesn't exist). * Add an include to our win32.h compatibility header. * Enable building examples on Travis in Windows. See #831
-
- 09 Jul, 2020 2 commits
-
-
Michael Grunder authored
It appears that _WIN32 is always defined by MSVC whereas WIN32 may not be, depending on configuration.
-
Michael Grunder authored
* Switch to memurai for Windows tests * Switch to macports from brew.
-
- 22 Jun, 2020 1 commit
-
-
OmriSteiner authored
Co-authored-by:
Omri Steiner <omri@insoundz.com>
-
- 19 Jun, 2020 1 commit
-
-
valentinogeron authored
When connecting with a timeout, we shouldn't also call `redisSetTimeout` which will implement a timeout for commands. See related issue #722
-
- 07 Jun, 2020 1 commit
-
-
Michael Grunder authored
Fix overflow bug in `sdsrange`
-
- 01 Jun, 2020 1 commit
-
-
Aureus authored
-
- 30 May, 2020 3 commits
-
-
michael-grunder authored
-
michael-grunder authored
-
michael-grunder authored
-
- 26 May, 2020 1 commit
-
-
Michael Grunder authored
-
- 25 May, 2020 1 commit
-
-
Michael Grunder authored
Using `strdup` as a struct member causes issues in older gcc
-
- 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.
-
- 21 May, 2020 1 commit
-
-
Michael Grunder authored
Fixes #815
-
- 20 May, 2020 1 commit
-
-
Muhammad Zahalqa authored
Standard function available and on most platforms uses a lookup table and not a check with 3 ranges.
-
- 19 May, 2020 2 commits
-
-
Michael Grunder authored
Pull RESP3 verbatim string handling from Redis Fixes #802
-
Yossi Gottlieb authored
* Fix missing SSL build/install options. * Use different build commands for non-Linux linkers. * Add missing install targets. Fixes #809
-
- 16 May, 2020 1 commit
-
-
Michael Grunder authored
Addresses #506
-
- 04 May, 2020 2 commits
-
-
Michael Grunder authored
* Remove nested depth limitation. This commit removes the nested multi-bulk depth limitation of 7. We do this by switching to pointer to pointer indirection and growing the stack in chunks when needed. See: #794, #421
-
Michael Grunder authored
Add support for timeouts in our libev adapter. See #795
-
- 23 Apr, 2020 2 commits
-
-
Michael Grunder authored
See #757
-
Michael Grunder authored
* Respect overridden libdir in CMake See: #767
-
- 13 Apr, 2020 1 commit
-
-
Michael Grunder authored
* Fix linker problems when building with SSL enabled on OSX * Corrects `HIREDIS_SSL=ON` to `USE_SSL=ON` so we test building with SSL enabled on travis.
-
- 10 Apr, 2020 1 commit
-
-
Nick Rivera authored
-
- 09 Apr, 2020 2 commits
-
-
Michael Grunder authored
Explicitly call `uv_poll_init_socket` as that has slightly different semantics on Windows (and is identical to `uv_poll_init` on Linux). http://docs.libuv.org/en/v1.x/poll.html#c.uv_poll_init_socket
-
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>
-
- 07 Apr, 2020 1 commit
-
-
Michael Grunder authored
CMake: Set hiredis_ssl shared object version.
-