diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-13 23:51:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-17 17:28:20 +0100 |
commit | 5fbd97fc756a827f62f556c66272f851cc3c7f90 (patch) | |
tree | 76ea5fc9f2a2f1e863fad8777395aeea28df1ed1 /libavcodec/me_cmp.h | |
parent | 69697be92200ff2222f8c59158f35b1771f0c002 (diff) | |
download | ffmpeg-5fbd97fc756a827f62f556c66272f851cc3c7f90.tar.gz |
avcodec/diracdec: Fix qfactor/offset tables
It seems the previous tables where calculated with 32bit integers ignoring
overflows.
Also check for the max qindex, the value is choosen so that the qfactor/offset
fit in int32.
Fixes: 070b7914fd5dfe8f93248bea71363410/asan_static-oob_c8d034_2764_258e20f4a3c79158aecddb61a833d756.drc
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/me_cmp.h')
0 files changed, 0 insertions, 0 deletions