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

            Bug ID: 31886
           Summary: [GAS] Allows incorrect memory size directive
           Product: binutils
           Version: 2.41
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: witbring at gmail dot com
  Target Milestone: ---

I found that the GAS 2.41 improperly checks memory size directives.

This error has been identified in 11 opcodes in x64 and x86 binaries.

Buggy Code (x86/x64)
```
.intel_syntax noprefix
Bugs:
    cldemote ZMMWORD PTR [EAX] 
    clflush ZMMWORD PTR [EAX] 
    clflushopt ZMMWORD PTR [EAX]  
    clwb ZMMWORD PTR [EAX]
    invlpg ZMMWORD PTR [EAX]
    prefetch ZMMWORD PTR [EAX]                       
    prefetchw ZMMWORD PTR [EAX]                      
    prefetcht0 ZMMWORD PTR [EAX]                      
    prefetcht1 ZMMWORD PTR [EAX]                     
    prefetcht2 ZMMWORD PTR [EAX]                      
    prefetchwt1 ZMMWORD PTR [EAX]
```

Compiled Code (x86/x64)
```
Bugs:
 cldemote BYTE PTR [eax]
 clflush BYTE PTR [eax]
 clflushopt BYTE PTR [eax]
 clwb   BYTE PTR [eax]
 invlpg BYTE PTR [eax]
 prefetch BYTE PTR [eax]
 prefetchw BYTE PTR [eax]
 prefetcht0 BYTE PTR [eax]
 prefetcht1 BYTE PTR [eax]
 prefetcht2 BYTE PTR [eax]
 prefetchwt1 BYTE PTR [eax]
```

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

Reply via email to