sandsifter icon indicating copy to clipboard operation
sandsifter copied to clipboard

injector: fix array initializer

Open rupran opened this issue 8 years ago • 0 comments

The struct insn_ts .bytes member is an array of length MAX_INSN_LENGTH, which is #define'd to 15 in line 179 of injector.c.

The initialization of total_range in line 320 (which is of type range_t, starring two members (.start and .end) of type insn_t, however, uses 16 bytes for the initialization of the .bytes arrays.

Fix it by removing one element from the initializations.

Fixes (parts of) #2, #3 and #5.

rupran avatar Jul 28 '17 10:07 rupran