[Nasm-bugs] [Bug 3392687] nasm allocates 1110 gigabytes of memory (and fails)

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Tue Jun 30 08:18:29 PDT 2020


--- Comment #3 from H. Peter Anvin <hpa at zytor.com> ---
Right ok, this explains MacOS X too, the common denominator being clang.

e uninitialized is technically not a problem here, because the actual value of
e is supposed to cancel out. Unfortunately it seems like clang "optimizes" this
code into garbage.

However, initializing it to NULL won't cause any damage; the optimizer will end
up seeing the cancellation at a later stage and should be able to remove the

All this because standard C doesn't have typeof(), and offsetof() requires a
type :-/

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list