• YaacovHazan's avatar
    redis-cli fixes around help hints version filtering (#13097) · a50bbcb6
    YaacovHazan authored
    
    
    - In removeUnsupportedArgs, trying to access the next item after the
    last one and causing an out of bounds read.
    - In versionIsSupported, when the 'version' is equal to 'since', the
    return value is 0 (not supported).
    Also, change the function to return `not supported` in case they have
    different numbers of digits
    
    Both issues were found by `Non-interactive non-TTY CLI: Test
    command-line hinting - old server` under `test-sanitizer-address` (When
    changing the `src/version.h` locally to `8.0.0`)
    
    The new `MAXAGE` argument inside `client-kill` triggered the issue (new
    argument at the end of the list)
    
    ---------
    Co-authored-by: default avatarYaacovHazan <yaacov.hazan@redislabs.com>
    a50bbcb6
redis-cli.c 376 KB