Re: [SQU] "insane length" error

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 01 Feb 2001 20:51:13 +0100

This message can be seen if you have cached requests using very long
URL's. The varning message is a bit too keen on being printed.. (these
lengths are not at all insane for URLs).

The message as such is harmless, apart from the fact that it gets
written to cache.log...

If you want to get rid of it, apply the attached patch

--
Henrik Nordstrom
Squid hacker
Sonny Franslay wrote:
> 
> Hi,
> 
> I could not find anything on the archive so I am posting this question:
> 
> I've just installed squid2.4 Pre-stable on a BSDI4.1. It runs without a
> glitch except that I notice the following error on the cache.log being
> repeated continuosly.
> 
> 2001/02/01 18:25:47| storeSwapMetaUnpack: insane length (2859)!
> 2001/02/01 18:25:50| storeSwapMetaUnpack: insane length (2931)!
> 2001/02/01 18:25:52| storeSwapMetaUnpack: insane length (3005)!
> 2001/02/01 18:25:52| storeSwapMetaUnpack: insane length (3003)!
> 2001/02/01 18:25:52| storeSwapMetaUnpack: insane length (3041)!
> 
> I hope someone can help me with this. Thanks in advance.
> 
> Sonny I. Franslay
> 
> --
> To unsubscribe, see http://www.squid-cache.org/mailing-lists.html

--- squid/src/store_swapmeta.c Fri Jan 12 09:16:51 2001
+++ commit/src/store_swapmeta.c Thu Feb 1 20:40:36 2001
@@ -135,7 +135,7 @@
             break;
         }
         xmemcpy(&length, &buf[j], sizeof(int));
- if (length < 0 || length > (1 << 10)) {
+ if (length < 0 || length > (1 << 16)) {
             debug(20, 0) ("storeSwapMetaUnpack: insane length (%d)!\n", length);
             break;
         }

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Thu Feb 01 2001 - 13:04:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:45 MST