Skip to content

Commit 9503778

Browse files
author
H. Peter Anvin (Intel)
committed
ndisasm: handle byte code 0300..0303 (HINT_NOP)
Avoid ndisasm printing error messages due to an unknown byte code. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
1 parent fc56538 commit 9503778

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

disasm/disasm.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,14 @@ static int matches(const uint8_t *data, const struct prefix_info *prefix,
563563
opx->segment |= SEG_SIGNED;
564564
break;
565565

566-
case4(020):
566+
case4(0300):
567+
if (!is_hint_nop(*data))
568+
return 0;
567569
opx->offset = *data++;
568570
opx->disp_size = 8;
569571
break;
570572

573+
case4(020):
571574
case4(024):
572575
opx->offset = *data++;
573576
opx->disp_size = 8;

0 commit comments

Comments
 (0)