[LLVMbugs] [Bug 21640] New: X86 disassembler skips over some bytes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 21 17:04:12 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21640

            Bug ID: 21640
           Summary: X86 disassembler skips over some bytes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

consider:
echo '0x2e 0x24 0x2e' | ~/llvm/AFL/bin/llvm-mc --disassemble
-triple=x86_64-pc-linux -show-encoding -show-inst

this gives us:
 .text
 andb   $46, %al                # encoding: [0x24,0x2e]
                                        # <MCInst #197 AND8i8
                                        #  <MCOperand Imm:46>>

What happened to 0x2e?  It is is a cs segment override prefix but gets no
mention in the disassembly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141122/fb5dd419/attachment.html>


More information about the llvm-bugs mailing list