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

2015-07-02 Thread Michael Niedermayer
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 byte

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

2015-07-02 Thread Michael Niedermayer
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 > ---

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

2015-07-02 Thread Andreas Cadhalpun
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 --- libavcodec/webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff