[Nasm-bugs] [Bug 3392452] stack-overflow in nasm

H. Peter Anvin hpa at zytor.com
Wed Dec 20 16:05:07 PST 2017


On 12/13/17 14:49, no-reply at bugzilla-nasm.gorcunov.org wrote:
> https://bugzilla.nasm.us/show_bug.cgi?id=3392452
> 
> --- Comment #1 from Cyrill Gorcunov <gorcunov at gmail.com> ---
> Some of the macros in this file expanded into series of
> 
>  mov
> ax,((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((..
> 
> where '(' reach more than 10000 count. No wonder that our recursive expression
> evaluate engine overflowed the stack.
> 
> Strictly speaking it's a bug but usually people don't do such things so I don't
> consider it critical. Still we probably need to limit nesting of braces.
> 
> Will try once time permit. Thanks for report!
> 

It's not a bug; it is hitting a system resource limit.

We could add a counter to error out in a different manner, but it is
always ugly to hard-code limits of this type.

	-hpa



More information about the Nasm-bugs mailing list