diff options
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | 2015-05-04 23:01:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-21 20:43:37 +0200 |
commit | 84db3e6648860bb4ad630f989ca2e07877fbe36c (patch) | |
tree | 7fe4b44fcd60438a0dcc632579f8b7b151606c34 /libavcodec/mjpegdec.h | |
parent | d8bfa4bb94a6613e1b2066be06d0706b1170cb27 (diff) | |
download | ffmpeg-84db3e6648860bb4ad630f989ca2e07877fbe36c.tar.gz |
avidec: avoid infinite loop due to negative ast->sample_size
If max in clean_index is set to a negative ast->sample_size, the
following loop never ends:
while (max < 1024)
max += max;
Thus set ast->sample_size to 0 if it would otherwise be negative.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ca234639ac49a0dc073ac1f10977979acdb94f97)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegdec.h')
0 files changed, 0 insertions, 0 deletions