• Oran Agra's avatar
    Adjustments to recent RM_StringTruncate fix (#3718) (#9125) · ae418eca
    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.
    ae418eca
basics.c 20.4 KB