From cffe3890c71455834b750fa467d6667d2e9e4547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Zahola?= Date: Thu, 26 Dec 2019 22:21:05 +0100 Subject: [PATCH] Fix nullptr dereference in FLAC++ --- src/libFLAC++/metadata.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libFLAC++/metadata.cpp b/src/libFLAC++/metadata.cpp index 6cb1ce64..374e5b31 100644 --- a/src/libFLAC++/metadata.cpp +++ b/src/libFLAC++/metadata.cpp @@ -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: