Skip to content

Commit

Permalink
Report segfaults that occur during modrm decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 26, 2018
1 parent b7167d5 commit 09a2730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static inline void gen_op(struct gen_state *state, gadget_t *gadgets, enum arg a
tlb_read(tlb, state->ip, &name, size/8); \
state->ip += size/8

#define READMODRM modrm_decode32(&state->ip, tlb, &modrm)
#define READMODRM if (!modrm_decode32(&state->ip, tlb, &modrm)) { gg_here(interrupt, INT_GPF); return; }
#define READADDR _READIMM(addr_offset, 32)
#define SEG_GS() seg_gs = true

Expand Down

0 comments on commit 09a2730

Please sign in to comment.