• ranshid's avatar
    assert in case resize output buffer will attempt to shrink too much (#11839) · 4972760b
    ranshid authored
    Currently there is no BUG. However during some internal code changes
    I found that it can happen (for example in case new code will not update
    the buf_peak) which can currently lead to memory overrun which is much
    harder to detect and root cause.
    
    Why did I please the assert here? The reason is to be able to have the
    buf_peak value without the risk of it being overriden by the peak_reset
    4972760b
server.c 281 KB