aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wavpack.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-04-28 22:37:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-17 21:50:09 +0200
commitffdd93fe79b708b7fdef378d34951e7c8c0d7f6b (patch)
treeaa8c861f806deb13006e9839f22f47d56316eb03 /libavcodec/wavpack.c
parentb548a6208eed898599bca0bf7979ba1d03932183 (diff)
downloadffmpeg-ffdd93fe79b708b7fdef378d34951e7c8c0d7f6b.tar.gz
nutdec: fix illegal count check in decode_main_header
The existing check has two problems: 1) i + count can overflow, so that the check '< 256' returns true. 2) In the (i == 'N') case occurs a j-- so that the loop runs once more. This can trigger the assertion 'nut->header_len[0] == 0' or cause segmentation faults or infinite hangs. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7c24ca1bda2d4df1dc9b2b982941be532d60da21) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpack.c')
0 files changed, 0 insertions, 0 deletions