1 Index: squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c
2 diff -c squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c:1.3 squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c:1.3.2.1
3 *** squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c:1.3 Wed Aug 29 08:57:38 2001
4 --- squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c Fri Aug 20 02:09:58 2004
7 o = WSWAP(str->offset);
9 /* Sanity checks. XXX values arbitrarialy chosen */
10 ! if (l <= 0 || l >= 32 || o >= 256) {
11 fprintf(stderr, "ntlmGetString: insane: l:%d o:%d\n", l, o);
15 o = WSWAP(str->offset);
17 /* Sanity checks. XXX values arbitrarialy chosen */
18 ! if (l <= 0 || o <= 0 || l >= 32 || o >= 256) {
19 fprintf(stderr, "ntlmGetString: insane: l:%d o:%d\n", l, o);
22 Index: squid/lib/ntlmauth.c
23 diff -c squid/lib/ntlmauth.c:1.5.2.2 squid/lib/ntlmauth.c:1.5.2.3
24 *** squid/lib/ntlmauth.c:1.5.2.2 Sun Jul 21 20:06:31 2002
25 --- squid/lib/ntlmauth.c Fri Aug 20 02:09:58 2004
28 o = WSWAP(str->offset);
29 /* debug("fetch_string(plength=%d,l=%d,o=%d)\n",length,l,o); */
31 ! if (l < 0 || l > MAX_FIELD_LENGTH || o + l > length || o == 0) {
32 /* debug("ntlmssp: insane data (l: %d, o: %d)\n", l,o); */
36 o = WSWAP(str->offset);
37 /* debug("fetch_string(plength=%d,l=%d,o=%d)\n",length,l,o); */
39 ! if (l < 0 || o <= 0 || l > MAX_FIELD_LENGTH || o + l > length) {
40 /* debug("ntlmssp: insane data (l: %d, o: %d)\n", l,o); */