• Oran Agra's avatar
    Adjustments to recent RM_StringTruncate fix (#3718) (#9125) · 37b0f361
    Oran Agra authored
    - Introduce a new sdssubstr api as a building block for sdsrange.
      The API of sdsrange is many times hard to work with and also has
      corner case that cause bugs. sdsrange is easy to work with and also
      simplifies the implementation of sdsrange.
    - Revert the fix to RM_StringTruncate and just use sdssubstr instead of
      sdsrange.
    - Solve valgrind warnings from the new tests introduced by the previous
      PR.
    
    (cherry picked from commit ae418eca)
    37b0f361
sds.c 45.7 KB