diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-16 21:27:49 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-17 20:09:25 +0300 |
commit | d4c2a3740fb95f952a87ba320d2bf31f126bdf68 (patch) | |
tree | 53ff41ce5ffe9bd6f55ef3e3bb65fe1ce2c08537 /libavcodec/dcahuff.h | |
parent | dc4acc820076b2149ef6c921bdabe05d07ca1bc6 (diff) | |
download | ffmpeg-d4c2a3740fb95f952a87ba320d2bf31f126bdf68.tar.gz |
xmv: Add more sanity checks for parameters read from the bitstream
Since the number of channels is multiplied by 36 and assigned to
to a uint16_t, make sure this calculation didn't overflow. (In
certain cases the calculation could overflow leaving the
truncated block_align at 0, leading to divisions by zero later.)
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/dcahuff.h')
0 files changed, 0 insertions, 0 deletions