Fix nullptr dereference in FLAC++

This commit is contained in:
Tamás Zahola 2019-12-26 22:21:05 +01:00 committed by Erik de Castro Lopo
parent 0dfe23504c
commit cffe3890c7

View File

@ -55,6 +55,9 @@ namespace FLAC {
Prototype *construct_block(::FLAC__StreamMetadata *object)
{
if (0 == object)
return 0;
Prototype *ret = 0;
switch(object->type) {
case FLAC__METADATA_TYPE_STREAMINFO: