[Zope-Coders] Re: [ZPT] CVS: Zope/lib/python/ZTUtils - Tree.py:1.8

Martijn Pieters mj@zope.com
Fri, 4 Oct 2002 09:40:59 -0400


On Thu, Oct 03, 2002 at 08:08:46PM -0700, Jamie Heilman wrote:
> No.  I'm saying a single step, or 1 SimpleTreeNode.id, with a length
> of 5000.  Your conditional code will allocate that length (unless
> there's some snazzy tricks going on behind the scenes with the *
> operator) over again for the test.  Browser limits aren't relevant,
> DoS tools don't follow protocol standards.  More the point though, is
> there a downside to only testing the only first character?  Yes I can
> hand you a bogus string of node id's and depth encodings, but by doing
> so, can I make anything bad happen?  If not, then testing only the
> first character should be more efficient.  If so, well then, lets fix
> it.

Okay, agreed, I'll also look into your other issue with regard to this code,
after a chat with some people here.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@zope.com
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------