[Nasm-bugs] [Bug 3392805] New: In disabled preprocessor part nasm_new is incorrectly used

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Aug 25 05:00:14 PDT 2022


            Bug ID: 3392805
           Summary: In disabled preprocessor part nasm_new is incorrectly
           Product: NASM
           Version: 2.16 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: minor
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at ulukai.org
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

Compilation fails when editing preproc.c to have "#define TOKEN_BLOCKSIZE 0" in

Here's the fix:

diff --git a/asm/preproc.c b/asm/preproc.c
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1766,7 +1766,7 @@ static void delete_Blocks(void)
 static inline Token *alloc_Token(void)
     Token *t;
-    nasm_new(*t);
+    nasm_new(t);
     return t;


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