[Zope-dev] Strange "Bug" in Scripts (Python) and Python code ...
Joachim Werner
joe@iuveno-net.de
Tue, 22 Oct 2002 22:41:59 +0200
Hi!
I just had a very strange problem. I tried some code like this in a Script
(Python). The (obvious) error in the code is the html += instead of just
html =.
These few lines brought the Zope server (and the Browser I used for testing)
to a halt:
html = ''
for letter in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
html += '|'.join([html, letter])
return html
After a very long time I got a Memory Error. I am not really sure whether
this qualifies as a bug, and whether it is a Zope bug or a Python bug (the
same happens when using the same code from filesystem-based Python). But I'd
guess that code fragments in Scripts (Python) should be save enough to not
blow the server. Other memory-intensive potentially malicious code like
infinite recursions are handled well after all.
Any comments?
_______________________________
Joachim Werner
iuveno AG
Wittelsbacherstraße 23b
90475 Nürnberg
Tel. +49 (0) 911 / 988398-4
Fax +49 (0) 911 / 988398-5
Mail: joachim.werner@iuveno.de
WWW: http://www.iuveno.de