• not-a-robot's avatar
    Auto merge of #391 - redis:catch-error-buf-overflow, r=badboy · 36bddcf6
    not-a-robot authored
    Prevent buffer overflow when formatting the error
    
    strncat might copy n+1 bytes (n bytes from the source plus a terminating nul byte).
    Also strncat appends after the first found nul byte. But all we pass is
    a buffer we might not have zeroed out already.
    
    Closes #380
    36bddcf6
hiredis.h 9.36 KB