Re: [PATCH] Define SIZEOF_OFF_T to fix overflow checks.

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 01 Sep 2010 03:22:26 +1200

Alex Rousskov wrote:
> Define SIZEOF_OFF_T to fix overflow checks.
>
> Overflow checks were broken because 'SIZEOF_OFF_T <= 4' was always true
> because SIZEOF_OFF_T was not defined and, hence, treated as zero.
>
> Co-Advisor test cases:
>
> test_case/rfc2616/noXform-fwd-Content-Range-simple-2147483645-2147483646-2147483647-withCc-toClt
>
>
> test_case/rfc2616/noXform-fwd-Content-Range-simple-2147483645-2147483646-*-withCc-toClt
>
>

Yeesh. +2.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.7
   Beta testers wanted for 3.2.0.1
Received on Tue Aug 31 2010 - 15:22:36 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 31 2010 - 12:00:05 MDT