1. 06 Feb, 2020 1 commit
    • Oran Agra's avatar
      RM_Scan disable dict rehashing · 28ef18a8
      Oran Agra authored
      The callback approach we took is very efficient, the module can do any
      filtering of keys without building any list and cloning strings, it can
      also read data from the key's value. but if the user tries to re-open
      the key, or any other key, this can cause dict re-hashing (dictFind does
      that), and that's very bad to do from inside dictScan.
      
      this commit protects the dict from doing any rehashing during scan, but
      also warns the user not to attempt any writes or command calls from
      within the callback, for fear of unexpected side effects and crashes.
      28ef18a8
  2. 05 Feb, 2020 4 commits
  3. 04 Feb, 2020 4 commits
  4. 03 Feb, 2020 3 commits
  5. 02 Feb, 2020 1 commit
  6. 30 Jan, 2020 2 commits
    • Salvatore Sanfilippo's avatar
      Merge pull request #6812 from guybe7/str_convert_fix · 53ac8c7d
      Salvatore Sanfilippo authored
      ld2string should fail if string contains \0 in the middle
      53ac8c7d
    • Guy Benoish's avatar
      ld2string should fail if string contains \0 in the middle · 2deb5551
      Guy Benoish authored
      This bug affected RM_StringToLongDouble and HINCRBYFLOAT.
      I added tests for both cases.
      
      Main changes:
      1. Fixed string2ld to fail if string contains \0 in the middle
      2. Use string2ld in getLongDoubleFromObject - No point of
         having duplicated code here
      
      The two changes above broke RM_SaveLongDouble/RM_LoadLongDouble
      because the long double string was saved with length+1 (An innocent
      mistake, but it's actually a bug - The length passed to
      RM_SaveLongDouble should not include the last \0).
      2deb5551
  7. 29 Jan, 2020 3 commits
  8. 15 Jan, 2020 2 commits
  9. 13 Jan, 2020 8 commits
  10. 10 Jan, 2020 7 commits
  11. 09 Jan, 2020 3 commits
  12. 08 Jan, 2020 2 commits