bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/19659] New: [libopcodes] Segmentation fault on print_insn_


From: njholcomb at wi dot rr.com
Subject: [Bug binutils/19659] New: [libopcodes] Segmentation fault on print_insn_i386
Date: Thu, 18 Feb 2016 17:41:02 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19659

            Bug ID: 19659
           Summary: [libopcodes] Segmentation fault on print_insn_i386
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: njholcomb at wi dot rr.com
  Target Milestone: ---

inst[] holds the bytes from left to right, zero indexed in a buffer.

INIT_DISASSEMBLE_INFO(disInfo, outf, (fprintf_ftype)fprintf);
disInfo.buffer = (bfd_byte*)(inst);
disInfo.buffer_length = nBytes;
disInfo.arch = bfd_arch_i386; 
disInfo.mach = bfd_mach_x86_64_intel_syntax;

print_insn_i386((bfd_vma)0, &disInfo); <- Segfaults

Here are several inputs that cause segfaults (each is 14 bytes):

8f eb 5c ec 72 4b 4e 3c 98 df e0 ef 1d 83
8f ac 65 ce 46 25 66 a4 81 97 92 ea b8 19
8f ae f7 ef 02 51 c2 50 bc 2d f3 fb 44 65
8f ce 47 ee 0e 2d 08 38 70 78 aa 73 29 4e
8f 2d 9e ed f2 12 7d 23 19 e3 49 50 8a 50

These values can also be prefixed by various prefix bytes and cause a crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]