SquidString > 64Kb (crash with long ESI pages and CustomParser/ Squid3)

From: Gabriel Wicke <lists@dont-contact.us>
Date: Mon, 21 Feb 2005 15:57:10 +0100

I have a question regarding handling of strings larger than 64K.

String.cc and mem.cc have cases for this, but i'm getting the impression
that this case isn't comepletely implemented. I tried to change the 'short
int' size qualifiers in SquidString.h, line 124, to

    unsigned int size_; /* buffer size; 64K limit */
    unsigned int len_; /* current length */

and removed the the assert in String::initBuf

    //assert(sz < 65536);

This appears to corrupt the stack (i'm new to C++, learning the hard way i
guess).

The motivation for my investigation is to find a fix for
http://www.squid-cache.org/bugs/show_bug.cgi?id=975.

Any ideas/pointers?

Thanks

-- 
Gabriel Wicke
gwicke in #squiddev at irc.freenode.net
Received on Mon Feb 21 2005 - 08:24:15 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 25 2005 - 12:00:03 MST