summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-25read: Validate line items prior to checking for object creation callbacksAlex Smith
2021-02-25read: Remove obsolete comment on nested multi bulk depth limitationAlex Smith
2021-02-25read: Add support for the RESP3 bignum typeAlex Smith
2021-02-25read: Ensure no invalid '\r' or '\n' in simple status/error stringsAlex Smith
2021-02-25read: Additional validation and test case for RESP3 doubleAlex Smith
This ensures that malformed RESP3 double messages that include an invalid null byte are not parsed as valid.
2021-02-25redisReply: Fix parent type assertions during double, nil, bool creationAlex Smith
Per RESP3, push messages are able to contain exactly what array messages can contain (that is, any other type).
2021-02-25redisReply: Explicitly list nil and bool cases in freeReplyObject() switch.Alex Smith
2021-02-25test: Add test case for RESP3 setAlex Smith
2021-02-25test: Add test case for RESP3 mapAlex Smith
2021-02-25read: Use memchr() in seekNewline() instead of looping over entire stringAlex Smith
2021-02-25test: Add test cases for RESP3 boolAlex Smith
2021-02-25read: Add additional RESP3 bool validationAlex Smith
RESP3 bools should be only one of "#t\r\n" or "#f\r\n". We also allow capital 'T' and 'F' to be lenient.
2021-02-25test: Add test cases for RESP3 nilAlex Smith
2021-02-25read: Add additional RESP3 nil validationAlex Smith
RESP3 nil should consist of "_\r\n" and nothing else.
2021-02-25test: Add test cases for infinite and NaN doublesAlex Smith
2021-02-25read: Fix double validation and infinity parsingAlex Smith
The ',' protocol byte gets removed in processItem(), so it should not be compared against in processLineItem(). strtod() allows multiple representations of infinity and NaN that are not RESP3 compliant. Since we explicitly check for the two compliant infinity cases, strtod() should only return finite values.
2021-02-25test: Add test case for doublesAlex Smith
2021-02-25redisReply: Fix - set len in double objectsAlex Smith
2021-02-17Merge pull request #924 from cheese1/masterMichael Grunder
http -> https
2021-02-17http -> httpscheese1
2021-01-26Merge pull request #917 from Nordix/stack-alloc-dict-iterMichael Grunder
Stack allocate dict iterators
2021-01-26Handle OOM during async command callback registrationBjorn Svensson
Unless the callback is pushed to the list it will trigger an assert in redisProcessCallbacks() when the response arrives. This change let the user get an early error instead, available in the async context directly.
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-12-12Tiny formatting changes + suppress implicit memcpy warningmichael-grunder
2020-12-12Removed 2 typecastsAdamKorcz
2020-12-11Added fuzzerAdamKorcz
2020-11-15Merge pull request #896 from ayeganov/bugfix/ssl_leakMichael Grunder
Free SSL object when redisSSLConnect fails
2020-11-10Free SSL object when redisSSLConnect failsAleksandr Yeganov
2020-10-27Merge pull request #894 from jcohen02/fix/issue893Michael Grunder
Updating SSL connection example in README
2020-10-27Updating SSL connection exampleJeremy Cohen
2020-10-18Merge pull request #889 from redis/wincertMichael Grunder
Add support for Wincert CA store in Windows
2020-10-18Formattingmichael-grunder
2020-10-18Merge pull request #874 from masariello/position-independent-codeMichael Grunder
Enable position-independent code, and add PDB files to packages for MSVC builds
2020-10-18Merge pull request #888 from michael-grunder/nil-push-invalidationMichael Grunder
Fix handling of NIL invalidation messages.
2020-10-17Fix handling of NIL invalidation messages.michael-grunder
When CLIENT TRACKING is enabled, Redis will send an invalidation message with a NIL payload to all tracking clients after a FLUSHDB is executed. We didn't account for REDIS_REPLY_PUSH being a valid parent object to a NIL payload, and were failing an assertion. Additionally this commit adds a regression test for the logic.
2020-10-12Merge pull request #885 from gkorland/patch-1Michael Grunder
clean a warning, remvoe empty else block
2020-10-12clean a warning, remvoe empty else blockGuy Korland
2020-09-27Merge pull request #881 from timgates42/bugfix_typo_terminatedMichael Grunder
docs: Fix simple typo, termined -> terminated
2020-09-26docs: Fix simple typo, termined -> terminatedTim Gates
There is a small typo in sds.c. Should read `terminated` rather than `termined`.
2020-09-23Copy error to redisAsyncContext on timeoutshiyuge
2020-09-09add pdb files to packages for MSVC buildsAlessio M
2020-09-09Add d suffix to debug libraries so that can packaged together with optimized ↵Alessio M
builds (Release, RelWithDebInfo, etc)
2020-09-09Enable position-independent codeAlessio M
2020-09-08Add support for system CA certificate store on WindowsAlessio M
2020-09-07Remove whitespacemichael-grunder
2020-09-07fixed issue with unit test linking on windows with SSLAlessio M
2020-09-04Merge branch 'master' of github.com:redis/hiredisAlessio M
2020-08-31Merge pull request #870 from michael-grunder/cmake-c99Michael Grunder
Explicitly set c99 in CMake
2020-08-28Explicitly set c99 in CMakemichael-grunder
See #869
2020-08-20Merge pull request #868 from michael-grunder/fix-sockaddr-typoMichael Grunder
Fix sockaddr typo