1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-28 15:19:38 +03:00
Files
ffmpeg/libavcodec
Michael Niedermayer 5fbd97fc75 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>
2016-01-17 17:28:20 +01:00
..
…
…
2015-12-15 22:45:15 -05:00
…
…
…
…
…
…
2015-12-19 09:32:53 -08:00
2015-12-19 09:32:53 -08:00
2015-11-30 18:29:57 -05:00
2015-11-22 16:16:16 -05:00
…
…
…
…
…
2015-10-29 21:26:43 +01:00
…
…
…
…
…
…
…
…
…
2016-01-06 16:43:06 +00:00
…
2015-11-21 08:51:49 -05:00
…
…
…
2016-01-10 16:28:14 +01:00
2016-01-10 16:28:14 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-30 10:58:46 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-10-13 16:03:04 +02:00
…
…
…
…
2015-12-26 20:29:22 -08:00
…
2015-10-26 10:08:01 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-12-18 18:08:00 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-12-07 16:10:51 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-10-25 22:48:04 +01:00
2015-12-05 21:11:52 +01:00
2015-12-05 21:11:52 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-12-20 21:31:55 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-20 08:20:13 -05:00
…
…
…
…
…
…
2016-01-06 16:43:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-01-10 12:49:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-11-30 23:31:12 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-10-26 23:23:59 -07:00
2015-12-21 11:14:02 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-12-22 12:54:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-01-06 16:43:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-12-07 09:25:02 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…