Revision: 14386
Author: adrian.chadd
Date: Thu Feb 4 19:12:26 2010
Log: Merge patchset 12597 from Squid-2.HEAD - handle DNS header-only
packets as invalid
http://code.google.com/p/lusca-cache/source/detail?r=14386
Modified:
/branches/LUSCA_HEAD/lib/rfc1035.c
=======================================
--- /branches/LUSCA_HEAD/lib/rfc1035.c Mon Jan 5 07:58:31 2009
+++ /branches/LUSCA_HEAD/lib/rfc1035.c Thu Feb 4 19:12:26 2010
@@ -285,7 +285,9 @@
size_t len;
assert(ns > 0);
do {
- assert((*off) < sz);
+ /* sanity check */
+ if ((*off) >= sz)
+ return 1;
c = *(buf + (*off));
if (c > 191) {
/* blasted compression */
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.