OSDN Git Service

webp: Make sure enough bytes are available
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Thu, 2 Jul 2015 23:14:51 +0000 (01:14 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 2 Jul 2015 23:50:09 +0000 (01:50 +0200)
commit76d4c62734fbb8a9f497712812f30ff5c27e787f
tree4afda2e7ea5b19a8feb7b006aaec135e41a2dc7c
parent016cac75c6061a1c03f812ddf258b8baefe70b00
webp: Make sure enough bytes are available

Every chunk needs at least 8 bytes for chunk_type and chunk_size.
Prevent a possible infinite loop.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/webp.c