On 6/1/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Will,
Will Glass-Husain wrote:
> I'd be happy with the latter item. If this is set to a sufficiently high
> number (20?) this prevents runaway macros yet will not limit typical use.
Can I ask a stupid question: what is the problem we're trying to solve?
Are we trying to avoid getting a stack overflow from runaway recursion?
If so, what are we going to replace it with? I see we have two options:
1. Simply deny the macro call
or
2. Throw another exception (MacroDepthExceededException?)
The way I see it, neither of these options is any better than simply
allowing the stack overflow to occur.
Stack overflows can be caused by many things. Throwing a
MacroDepthException is much more informative, and in the case of 3rd
party templates being introduced to a running system, can prevent DOS
type stuff.
Am I crazy?
not at all. this is a really good thing to ask before putting effort
into something like this!
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGYGKj9CaO5/Lv0PARAq/rAKCjkbaIRIYas8AysrzDO+hQora+twCfSxix
7OuLJWdY58pbW8hLR6z8A6Y=
=hWSQ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]