8 Sep
1999
8 Sep
'99
9:57 a.m.
Evan Simpson wrote:
Andreas Kostyrka wrote:
Now, just insert a local variable, increment it on each loop iteration. Set an unreasonable high limit like 500000 iterations.
That's what I meant by inserting test code near jumps, actually :) This is such a low priority for me because of the number of deliberate denial of service attacks I know of which this would not solve. I may still implement it as a safety net for mistakes, rather than attacks.
I don't think this is the right track though; it's hellishly complicated, you leave holes open, etc. While modifying the Python interpreter source is evil too, at least it's clean once you're past that. Apparently it can be done in an extension module too.. (as Microthreads does) Regards, Martijn