• Jan-Erik Rediger's avatar
    Prevent buffer overflow when formatting the error · 0335cb3e
    Jan-Erik Rediger authored
    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
    0335cb3e
hiredis.h 9.36 KB