diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-17 12:28:26 -0800 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-04-01 18:33:26 +0200 |
commit | 4509129e9d04c93a3de4005787a058d1b950eb03 (patch) | |
tree | 70b84f2b8c4e532feff9a9cdd077e1a9446603db /libavcodec/alsdec.c | |
parent | d031302e0ec6bfddb905f4827782f9e6e338cf9d (diff) | |
download | ffmpeg-4509129e9d04c93a3de4005787a058d1b950eb03.tar.gz |
als: prevent infinite loop in zero_remaining().
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit af468015d972c0dec5c8c37b2685ffa5cbe4ae87)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r-- | libavcodec/alsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 17c54900f7..f2944c6038 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1010,7 +1010,7 @@ static void zero_remaining(unsigned int b, unsigned int b_max, { unsigned int count = 0; - while (b < b_max) + for (; b < b_max; b++) count += div_blocks[b]; if (count) |