Re: [Patch] Empty Membuf terminate

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 08 Apr 2014 16:05:26 +1200

On 8/04/2014 4:20 a.m., Tsantilas Christos wrote:
> Hi all,
>
> When an error page template file is empty I am getting strange
> behaviour, sometimes I am getting an assertion failed, some other cases
> crap send to the client instead of an error page.
>
> These problems caused because a MemBuf , in which no data added is not
> NULL terminated. I am attaching a patch which terminates an empty MemBuf.
> We are consider MemBuf as always NULL terminated, so I believe we must
> terminate an empty MemBuf too.
>
> Regards,
> Christos
>

+1. Please apply ASAP.

Amos
Received on Tue Apr 08 2014 - 04:05:31 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 08 2014 - 12:00:12 MDT