summaryrefslogtreecommitdiff
path: root/dict.c
AgeCommit message (Collapse)Author
2024-03-22all: use REUSE with LGPL-3.0-or-later and BSD-3-ClauseAnna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2021-01-25Stack allocate dict iteratorsBjorn Svensson
Replacing the get & release functions with an initiation function. Simplifies the code and will make sure we run subscription callbacks in OOM scenarios.
2020-05-22Allow users to replace allocator and handle OOM everywhere. (#800)Michael Grunder
* 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.
2020-01-28Safe allocation wrappers (#754)Michael Grunder
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
2019-11-20Fix typo in dict.c.Kevin
2015-10-28fixing typoscharsyam
2011-01-14Make dictionary functions static and include the .c filePieter Noordhuis
2010-12-31Remove unused code/cleanupPieter Noordhuis
2010-12-31Replace zmalloc with regular mallocPieter Noordhuis
2010-12-31Import dictionary code from Redis repository (as of 2069d06a)Pieter Noordhuis