]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE6-ntlm_fetch_string.patch
- added Source{0,1,4}-size
[packages/squid.git] / squid-2.5.STABLE6-ntlm_fetch_string.patch
CommitLineData
6344415e 1Index: squid/helpers/ntlm_auth/fakeauth/fakeauth_auth.c
2diff -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
5***************
6*** 150,156 ****
7 o = WSWAP(str->offset);
8
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);
12 return (NULL);
13 }
14--- 150,156 ----
15 o = WSWAP(str->offset);
16
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);
20 return (NULL);
21 }
22Index: squid/lib/ntlmauth.c
23diff -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
26***************
27*** 84,90 ****
28 o = WSWAP(str->offset);
29 /* debug("fetch_string(plength=%d,l=%d,o=%d)\n",length,l,o); */
30
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); */
33 return rv;
34 }
35--- 84,90 ----
36 o = WSWAP(str->offset);
37 /* debug("fetch_string(plength=%d,l=%d,o=%d)\n",length,l,o); */
38
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); */
41 return rv;
42 }
This page took 0.195032 seconds and 4 git commands to generate.