• Lior Lahav's avatar
    Fix possible crash in command getkeys (#12380) · bd1dac0c
    Lior Lahav authored
    
    
    When getKeysUsingKeySpecs processes a command with more than one key-spec,
    and called with a total of more than 256 keys, it'll call getKeysPrepareResult again,
    but since numkeys isn't updated, getKeysPrepareResult will not bother to copy key
    names from the old result (leaving these slots uninitialized). Furthermore, it did not
    consider the keys it already found when allocating more space.
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    (cherry picked from commit b7559d9f)
    bd1dac0c
db.c 88.3 KB