[Nasm-bugs] [Bug 3392526] New: There is an undefined behavior in nasm2.14rc16.

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Mon Oct 29 04:22:20 PDT 2018


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

            Bug ID: 3392526
           Summary: There is an undefined behavior in nasm2.14rc16.
           Product: NASM
           Version: 2.14 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: ganshuitao at gmail.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Build from source archive using configure

Created attachment 411687
  --> https://bugzilla.nasm.us/attachment.cgi?id=411687&action=edit
Trigger by"./nasm_ubsan -f bin POC5 -o xxx"

version:nasm2.14rc16
Summary: 

There is an undefined behavior in nasm2.14rc16. 

Description:

The ubsan debug is as follows:

$./nasm -f bin POC5 -o xxx

company at ubuntu:~/real_sanitize/poc_check/nasm$ ./nasm_new_undef -f bin poc5 -o
/dev/null
poc5:9: warning: unterminated string
poc5:29: error: parser: instruction expected
poc5:11: ... from macro `b_struc' defined here
asm/rdstrnum.c:64:36: runtime error: left shift of 6877119175776878638 by 8
places cannot be represented in type 'long int'
poc5:29: warning: character constant too long
poc5:16: ... from macro `b_struc' defined here
poc5:29: error: comma, colon, decorator or end of line expected after operand
poc5:16: ... from macro `b_struc' defined here
poc5:29: warning: character constant too long

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