Commit 1149fbc7 authored by Alex Converse's avatar Alex Converse

indeo3: Fix a fencepost error.

Found with asan and the venerable 1-dog.avi sample.
parent 735e601b
......@@ -444,7 +444,7 @@ static int decode_cell_data(Cell *cell, uint8_t *block, uint8_t *ref_block,
BUFFER_PRECHECK;
dyad1 = bytestream_get_byte(data_ptr);
dyad2 = code;
if (dyad1 > delta_tab->num_dyads || dyad1 >= 248)
if (dyad1 >= delta_tab->num_dyads || dyad1 >= 248)
return IV3_BAD_DATA;
} else {
/* process QUADS */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment