[FFmpeg-devel] [PATCH] webp: fix infinite loop in webp_decode_frame

Michael Niedermayer michaelni at gmx.at
Fri Jul 3 04:14:46 CEST 2015


On Fri, Jul 03, 2015 at 02:42:57AM +0200, Michael Niedermayer wrote:
> On Thu, Jul 02, 2015 at 11:45:46PM +0200, Andreas Cadhalpun wrote:
> > The loop always needs at least 8 bytes for chunk_type and chunk_size.
> > If fewer are left, bytestream2_get_le32 just returns 0 without
> > reading any bytes, leading to an infinite loop.
> > 
> > Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> > ---
> >  libavcodec/webp.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> LGTM

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150703/1a9d56be/attachment.asc>


More information about the ffmpeg-devel mailing list