[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 10:23:44 PDT 2020


https://bugzilla.nasm.us/show_bug.cgi?id=3392687

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|OPEN                        |CLOSED

--- Comment #5 from H. Peter Anvin <hpa at zytor.com> ---
Well, I eventually got clang working on my machine (turns out that clang breaks
horribly if certain builds of gcc are installed on the same system.)

I have verified that clang does, indeed, miscompile this function and that the
proposed fix works.

I will file a clang bug on this; although technically undefined behavior it is
a quality of implementation bug in clang: x + N - x where N is a constant
should result in N, even if x is uninitialized.

Unfortunately repo.or.cz seems to be offline at the moment, but the fix is now
in my development repository and I will push it out as soon as possible.

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


More information about the Nasm-bugs mailing list