indeo3: Fix a fencepost error.
Found with asan and the venerable 1-dog.avi sample.
This commit is contained in:
parent
735e601be1
commit
1149fbc763
@ -444,7 +444,7 @@ static int decode_cell_data(Cell *cell, uint8_t *block, uint8_t *ref_block,
|
|||||||
BUFFER_PRECHECK;
|
BUFFER_PRECHECK;
|
||||||
dyad1 = bytestream_get_byte(data_ptr);
|
dyad1 = bytestream_get_byte(data_ptr);
|
||||||
dyad2 = code;
|
dyad2 = code;
|
||||||
if (dyad1 > delta_tab->num_dyads || dyad1 >= 248)
|
if (dyad1 >= delta_tab->num_dyads || dyad1 >= 248)
|
||||||
return IV3_BAD_DATA;
|
return IV3_BAD_DATA;
|
||||||
} else {
|
} else {
|
||||||
/* process QUADS */
|
/* process QUADS */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user