[Nasm-bugs] [Bug 3392640] New: git nasm: condition code macro parameter as first of two parameters crashes nasm

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Wed Dec 25 12:09:09 PST 2019


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

            Bug ID: 3392640
           Summary: git nasm: condition code macro parameter as first of
                    two parameters crashes nasm
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: critical
          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

The nasm command here is this revision
https://repo.or.cz/nasm.git/commitdiff/e91f5cc1322eed4da0de81656276e021bf352c3d
plus the patch given in https://bugzilla.nasm.us/show_bug.cgi?id=3392630#c1


$ cat test.asm
        %imacro mac 1-2
                j%+1
        %endmacro
        mac c, label

$ nasm -v
NASM version 2.15rc0 compiled on Oct 29 2019
$ nasm test.asm
Segmentation fault
$ oldnasm -v
NASM version 2.14.03rc2 compiled on Aug 31 2019
$ oldnasm test.asm
test.asm:4: error: invalid combination of opcode and operands
test.asm:2: ... from macro `mac' defined here
$ /usr/bin/nasm -v
NASM version 2.12.01
$ /usr/bin/nasm test.asm
test.asm:4: error: invalid combination of opcode and operands
$ 


The old versions correctly fail with an error here. The git nasm crashes
instead.

It seems necessary to pass two macro parameters, the first one being a
condition code, and that one being used with a %+1 or %-1 expansion.

-- 
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