summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-11-29 01:32:35 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-08 21:29:37 +0100
commitf6ae3da9febaf0cf552784c11656c64ef54545be (patch)
treec8f9344327a18f5ecf9dc6279682b57daa637518
parentf97db44f499d5f1b1749a6f188ebba9b5c101f1f (diff)
Avoid crash with empty ASSETMAP file.v1.9.26v1.9.x
-rw-r--r--src/verify.cc3
1 files changed, 3 insertions, 0 deletions
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) {