]>
Commit | Line | Data |
---|---|---|
230f348a AM |
1 | Index: squid/lib/rfc1035.c |
2 | diff -c squid/lib/rfc1035.c:1.22.2.4 squid/lib/rfc1035.c:1.22.2.5 | |
3 | *** squid/lib/rfc1035.c:1.22.2.4 Fri Apr 25 06:09:57 2003 | |
4 | --- squid/lib/rfc1035.c Sun Apr 11 03:14:52 2004 | |
5 | *************** | |
6 | *** 337,343 **** | |
7 | break; | |
8 | if (len > (ns - no - 1)) /* label won't fit */ | |
9 | return 1; | |
10 | ! if ((*off) + len > sz) /* message is too short */ | |
11 | return 1; | |
12 | memcpy(name + no, buf + (*off), len); | |
13 | (*off) += len; | |
14 | --- 337,343 ---- | |
15 | break; | |
16 | if (len > (ns - no - 1)) /* label won't fit */ | |
17 | return 1; | |
18 | ! if ((*off) + len >= sz) /* message is too short */ | |
19 | return 1; | |
20 | memcpy(name + no, buf + (*off), len); | |
21 | (*off) += len; |