From f6ae3da9febaf0cf552784c11656c64ef54545be Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Nov 2024 01:32:35 +0100 Subject: Avoid crash with empty ASSETMAP file. --- src/verify.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/verify.cc b/src/verify.cc index 8bf65fc3..68f838cf 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1819,6 +1819,9 @@ dcp::verify ( context.error(VerificationNote::Code::FAILED_READ, string(e.what())); } catch (cxml::Error& e) { context.error(VerificationNote::Code::FAILED_READ, string(e.what())); + } catch (xmlpp::parse_error& e) { + carry_on = false; + context.error(VerificationNote::Code::FAILED_READ, string(e.what())); } if (!carry_on) { -- cgit v1.2.3