mirror of https://github.com/x64dbg/zydis
				
				
				
			Ignore REX-prefix, if it is not the last prefix before the opcode
This commit is contained in:
		
							parent
							
								
									9628fb8367
								
							
						
					
					
						commit
						dc62509b9b
					
				| 
						 | 
					@ -777,6 +777,10 @@ static ZydisStatus ZydisCollectOptionalPrefixes(ZydisDecoderContext* context,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (!done)
 | 
					        if (!done)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
					            if ((prefixByte & 0xF0) != 0x40)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                info->details.rex.data[0] = 0x00;       
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            context->prefixes[info->details.prefixes.count] = prefixByte;
 | 
					            context->prefixes[info->details.prefixes.count] = prefixByte;
 | 
				
			||||||
            info->details.prefixes.data[info->details.prefixes.count++] = prefixByte;
 | 
					            info->details.prefixes.data[info->details.prefixes.count++] = prefixByte;
 | 
				
			||||||
            ZydisInputSkip(context, info);
 | 
					            ZydisInputSkip(context, info);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue