mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '3f09d4f6d43468dbc9307bb937516a32287008dc' into release/2.4
* commit '3f09d4f6d43468dbc9307bb937516a32287008dc': ffv1: fix out-of-bounds read Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fb62580fb6
|
@ -166,7 +166,7 @@ static void find_best_state(uint8_t best_state[256][256],
|
|||
best_len[k] = len;
|
||||
best_state[i][k] = j;
|
||||
}
|
||||
for (m = 0; m < 256; m++)
|
||||
for (m = 1; m < 256; m++)
|
||||
if (occ[m]) {
|
||||
newocc[ one_state[ m]] += occ[m] * p;
|
||||
newocc[256 - one_state[256 - m]] += occ[m] * (1 - p);
|
||||
|
|
Loading…
Reference in New Issue