buffer overflow :(

This commit is contained in:
Kelvin Sherlock 2019-04-15 20:06:15 -04:00
parent 1afa610ab2
commit 3ffa1d0e76

View File

@ -370,7 +370,7 @@ struct opcode_entry opcode_table[] = {
/* generate an index of mnemonics to opcodes in the opcode_table */ /* generate an index of mnemonics to opcodes in the opcode_table */
struct opcode_entry *opcode_table_index[MNEMONIC_LAST] = { 0 }; struct opcode_entry *opcode_table_index[MNEMONIC_LAST+1] = { 0 };
static void init_table_index(void) { static void init_table_index(void) {
unsigned i; unsigned i;
unsigned prev = 0; unsigned prev = 0;