]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Define SIZEOF_OFF_T to fix overflow checks.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Aug 2010 23:41:30 +0000 (17:41 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Aug 2010 23:41:30 +0000 (17:41 -0600)
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

configure.in

index c06564908f9672afa3427f058148d51a50a0a495..75090e0c9286ba7026639d9d2e1021024b0b654b 100644 (file)
@@ -2285,6 +2285,8 @@ AC_CHECK_TYPE([bool])
 #need the defines for PRId64
 AC_CHECK_SIZEOF(int64_t)
 AC_CHECK_SIZEOF(long)
+#need the define for overflow checks
+AC_CHECK_SIZEOF(off_t)
 
 dnl On Solaris 9 x86, gcc may includes a "fixed" set of old system include files
 dnl that is incompatible with the updated Solaris header files.