avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Sep 2015 09:10:48 +0000 (11:10 +0200)
committerMike Gabriel <sunweaver@debian.org>
Thu, 20 Dec 2018 21:56:40 +0000 (21:56 +0000)
commit5558965c99c681c50c26027eec126a6d78b7c0e9
tree14f1b64a090996de1dfb85203bb6ff46009e38da
parent7a790fdc456f9d2defa9fa5fa541351ca770023a
avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

avcodec/vp8: Do not use num_coeff_partitions in thread/buffer setup

The variable is not a constant and can lead to race conditions

Fixes: repro.webm (not reproducable with FFmpeg alone)
Found-by: Dale Curtis <dalecurtis@google.com>
Tested-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Gbp-Pq: Name CVE-2015-6761.patch
libavcodec/vp8.c