Skip to content

Commit

Permalink
swat: fix out-of-bounds write when disassembling 3-op assembly instru…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
mgroeber9110 committed Dec 8, 2023
1 parent ba16a74 commit 550ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/swat/ibm86.c
Original file line number Diff line number Diff line change
Expand Up @@ -4190,7 +4190,7 @@ Ibm86DecodeInt(byte *ibuf, /* Buffer of bytes to decode */
Boolean prefixSize[2] = {FALSE, FALSE} ;
byte * ibuf2; /* Start of instruction without size prefixes */
#endif
OperandSize vals[2]; /* Argument values */
OperandSize vals[3]; /* Argument values */
GeosAddr ea; /* Effective address. */
int eaNum; /* Which arg is the effective address*/
int valNum; /* Index into vals */
Expand Down

0 comments on commit 550ec98

Please sign in to comment.