Sandboxing [Was Re: killing thread ?]

Paul Rubin phr-n2003b at NOSPAMnightsong.com
Fri Jan 24 19:58:44 EST 2003


"Terry Reedy" <tjreedy at udel.edu> writes:
> > > Bastion ever protected you against "while 1: pass"
> 
> Hmmm.  Disable 'while': force use of for loops, and limit list
> lengths, and recursion depth and ....

Recursion depth is already limited.  Normally you handle infinite
loops by having the interpreter count the bytecodes it executes,
and stop after some limit.




More information about the Python-list mailing list