ffmdec: reject zero-sized chunks
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Wed, 2 Dec 2015 21:47:12 +0000 (22:47 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 4 Dec 2015 14:20:04 +0000 (15:20 +0100)
commita611375db532c3d5363d97b10fadd0211811a4fd
tree3620bc8ae4a74ba64e74ea78f68e394727e77c47
parent488e9a06f014222720deafc48f43d9bd1973ba97
ffmdec: reject zero-sized chunks

If size is zero, avio_get_str fails, leaving the buffer uninitialized.
This causes invalid reads in av_set_options_string.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/ffmdec.c