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

Michael Niedermayer michaelni at gmx.at
Fri Jul 3 02:42:57 CEST 2015

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(-)



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/d5a6ee12/attachment.asc>

More information about the ffmpeg-devel mailing list