[Nasm-bugs] [Bug 3392775] New: uninitialized value use

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Tue Aug 10 14:08:20 PDT 2021


            Bug ID: 3392775
           Summary: uninitialized value use
           Product: NASM
           Version: 2.16 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: xiaobaozidi at gmail.com
                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

Created attachment 411822
  --> https://bugzilla.nasm.us/attachment.cgi?id=411822&action=edit
Here is the testcase crash the program

Found by Andrew Bao with his UninitFuzzer
Here is the msan report:
 ./nasm -f bin
-o ./tmp
fuzz_out/crashes/id:000000,sig:06,src:000799,op:arith8,pos:3,val:-3:1: error:
comma, colon, decorator or end of line expected after operand
fuzz_out/crashes/id:000000,sig:06,src:000799,op:arith8,pos:3,val:-3:1: error:
invalid decorator
==3163==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x5176f5 in parse_line
    #1 0x4a1ab2 in assemble_file
    #2 0x4a1ab2 in main
    #3 0x7f25ab942bf6 in __libc_start_main
    #4 0x41c139 in _start

  Uninitialized value was created by an allocation of 'output_ins.i' in the
stack frame of function 'main'
    #0 0x49c790 in main

SUMMARY: MemorySanitizer: use-of-uninitialized-value
/home/baod/software_testing/software_test/nasm/asm/parser.c:1266:13 in

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