Hiredis v0.14.0 Release Notes

Release Date: 2018-09-25 // about 4 years ago

    • ๐Ÿ”„ Change redisReply.len to size_t, as it denotes the the size of a string

    User code should compare this to size_t values as well. If it was used to compare to other values, casting might be necessary or can be removed, if casting was applied before.

    • ๐Ÿ‘‰ Make string2ll static to fix conflict with Redis (Tom Lee [c3188b])
    • ๐Ÿ‘‰ Use -dynamiclib instead of -shared for OSX (Ryan Schmidt [a65537])
    • โœ… Use string2ll from Redis w/added tests (Michael Grunder [7bef04, 60f622])
    • ๐Ÿ›  Makefile - OSX compilation fixes (Ryan Schmidt [881fcb, 0e9af8])
    • โœ‚ Remove redundant NULL checks (Justin Brewer [54acc8, 58e6b8])
    • ๐Ÿ›  Fix bulk and multi-bulk length truncation (Justin Brewer [109197])
    • ๐Ÿ›  Fix SIGSEGV in OpenBSD by checking for NULL before calling freeaddrinfo (Justin Brewer [546d94])
    • ๐Ÿ›  Several POSIX compatibility fixes (Justin Brewer [bbeab8, 49bbaa, d1c1b6])
    • ๐Ÿ›  Makefile - Compatibility fixes (Dimitri Vorobiev [3238cf, 12a9d1])
    • ๐Ÿ‘‰ Makefile - Fix make install on FreeBSD (Zach Shipko [a2ef2b])
    • ๐Ÿ‘‰ Makefile - don't assume $(INSTALL) is cp (Igor Gnatenko [725a96])
    • Separate side-effect causing function from assert and small cleanup (amallia [b46413, 3c3234])
    • Don't send negative values to __redisAsyncCommand (Frederik Deweerdt [706129])
    • ๐Ÿ›  Fix leak if setsockopt fails (Frederik Deweerdt [e21c9c])
    • ๐Ÿ›  Fix libevent leak (zfz [515228])
    • โš  Clean up GCC warning (Ichito Nagata [2ec774])
    • ๐Ÿ–จ Keep track of errno in __redisSetErrorFromErrno() as snprintf may use it (Jin Qing [25cd88])
    • Solaris compilation fix (Donald Whyte [41b07d])
    • ๐Ÿ— Reorder linker arguments when building examples (Tustfarm-heart [06eedd])
    • Keep track of subscriptions in case of rapid subscribe/unsubscribe (Hyungjin Kim [073dc8, be76c5, d46999])
    • ๐Ÿ†“ libuv use after free fix (Paul Scott [cbb956])
    • Properly close socket fd on reconnect attempt (WSL [64d1ec])
    • โœ… Skip valgrind in OSX tests (Jan-Erik Rediger [9deb78])
    • โšก๏ธ Various updates for Travis testing OSX (Ted Nyman [fa3774, 16a459, bc0ea5])
    • โšก๏ธ Update libevent (Chris Xin [386802])
    • ๐Ÿ”„ Change sds.h for building in C++ projects (Ali Volkan ATLI [f5b32e])
    • ๐Ÿ‘‰ Use proper format specifier in redisFormatSdsCommandArgv (Paulino Huerta, Jan-Erik Rediger [360a06, 8655a6])
    • ๐Ÿ‘ Better handling of NULL reply in example code (Jan-Erik Rediger [1b8ed3])
    • Prevent overflow when formatting an error (Jan-Erik Rediger [0335cb])
    • Compatibility fix for strerror_r (Tom Lee [bb1747])
    • ๐Ÿ“œ Properly detect integer parse/overflow errors (Justin Brewer [93421f])
    • โž• Adds CI for Windows and cygwin fixes (owent, [6c53d6, 6c3e40])
    • Catch a buffer overflow when formatting the error message
    • โœ… Import latest upstream sds. This breaks applications that are linked against the old hiredis v0.13
    • ๐Ÿ›  Fix warnings, when compiled with -Wshadow
    • ๐Ÿ Make hiredis compile in Cygwin on Windows, now CI-tested
    • Bulk and multi-bulk lengths less than -1 or greater than LLONG_MAX are now protocol errors. This is consistent with the RESP specification. On 32-bit platforms, the upper bound is lowered to SIZE_MAX.

    • โœ‚ Remove backwards compatibility macro's

    ๐Ÿšš This removes the following old function aliases, use the new name now:

    Old New
    redisReplyReaderCreate redisReaderCreate
    redisReplyReaderCreate redisReaderCreate
    redisReplyReaderFree redisReaderFree
    redisReplyReaderFeed redisReaderFeed
    redisReplyReaderGetReply redisReaderGetReply
    redisReplyReaderSetPrivdata redisReaderSetPrivdata
    redisReplyReaderGetObject redisReaderGetObject
    redisReplyReaderGetError redisReaderGetError
    • The DEBUG variable in the Makefile was renamed to DEBUG_FLAGS

    ๐Ÿ— Previously it broke some builds for people that had DEBUG set to some arbitrary value, due to debugging other software. By renaming we avoid unintentional name clashes.

    Simply rename DEBUG to DEBUG_FLAGS in your environment to make it working again.