Skip to content

Commit a8ebc72

Browse files
committed
scheck: ignore OP_NOP & friends
Some instructions have no effects and so can just be ignored here. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
1 parent 0b0d8b1 commit a8ebc72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎scheck.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ static bool check_function(struct entrypoint *ep)
313313
break;
314314
case OP_RET:
315315
goto out;
316+
case OP_INLINED_CALL:
317+
case OP_DEATHNOTE:
318+
case OP_NOP:
319+
case OP_CONTEXT:
320+
continue;
316321
default:
317322
fprintf(stderr, "unsupported insn: %s\n", show_instruction(insn));
318323
goto out;

0 commit comments

Comments
 (0)