libFLAC: More comment validation
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 5 Jul 2015 11:21:44 +0000 (21:21 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 5 Jul 2015 11:21:48 +0000 (21:21 +1000)
commitff50779e4498b87cc2023cabb46e970b9f8787e6
tree54cf7f870bc8fdcc8f308cd65d5a7cd0e32fd4d1
parent5e66846a545de85697bd7b45989b94ca7be9417b
libFLAC: More comment validation

When the allocation for obj->comment fails, set obj->num_comments
to zero.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
src/libFLAC/metadata_iterators.c
src/libFLAC/metadata_object.c
src/libFLAC/stream_decoder.c