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)
committerMarkus Koschany <apo@debian.org>
Mon, 7 Jan 2019 18:45:12 +0000 (18:45 +0000)
commitc7bec5418fa4e19c7044c725d8309be0e9cf8b9f
tree6849e4cb509ee27ed4f3c7ac73196b0baa863474
parent2d95982015e479a9129791b701a2754b9840b1c9
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