[Nasm-bugs] [Bug 3392453] New: nasm not compiling line 'call dword 0x0' correctly

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Mon Dec 11 12:12:51 PST 2017


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

            Bug ID: 3392453
           Summary: nasm not compiling line 'call dword 0x0' correctly
           Product: NASM
           Version: 2.11.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: trivial
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: 96q5aavif1 at contradiction.e4ward.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: From OS distribution

a very simple poc

$ echo 'call dword 0x0' > a.asm
$ nasm -f elf32 -o tmp.o a.asm 
$ objcopy --dump-section .text=a.bin a.o 
$ cat a.bin | ndisasm -b 32 -
00000000  E8FCFFFFFF        call dword 0x1

I guess it should be:
$ echo e8 fb ff ff ff | xxd -ps -r | ndisasm -b 32 -
00000000  E8FBFFFFFF        call dword 0x0

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