diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-19 12:02:56 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-20 15:40:13 +0100 |
commit | 2db78f83bad187012f446ca43f6edcb845e7f513 (patch) | |
tree | e78825de7131cb12eb785778e7e48cf15a32dc38 /libswresample/audioconvert.h | |
parent | 882391f9758ea13643639e21de81e3f7978b0695 (diff) | |
download | ffmpeg-2db78f83bad187012f446ca43f6edcb845e7f513.tar.gz |
nutdec: reject negative value_len in read_sm_data
If it is negative, it can cause the byte position to move backwards in
avio_skip, which in turn makes sm_size negative and thus size larger
than the size of the packet buffer, causing invalid writes in avio_read.
Also fix potential overflow of avio_tell(bc) + value_len.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit ce10f572c12b0d172c72d31d8c979afce602bf0c)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libswresample/audioconvert.h')
0 files changed, 0 insertions, 0 deletions