From 8ee8fcf36ee5f69daff084495474ff00a10c46fe Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Tue, 8 Sep 2026 12:51:56 +0300 Subject: [PATCH] Handle XML parsing errors IB-8908 Signed-off-by: Raul Metsma --- client/CDocSupport.cpp | 5 +++++ client/libcdoc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/CDocSupport.cpp b/client/CDocSupport.cpp index 7b9c969c2..b3adbfee4 100644 --- a/client/CDocSupport.cpp +++ b/client/CDocSupport.cpp @@ -88,6 +88,11 @@ CDocSupport::getCDocFileList(const QString &filename) xml.skipCurrentElement(); } } + if(xml.hasError()) { + // Malformed container, whatever was collected so far is incomplete + qWarning() << "Failed to parse" << filename << ":" << xml.errorString(); + files.clear(); + } return files; } diff --git a/client/libcdoc b/client/libcdoc index 83408f9fc..ab193a9f1 160000 --- a/client/libcdoc +++ b/client/libcdoc @@ -1 +1 @@ -Subproject commit 83408f9fcf4af25e81d891c34f9cc437d23f021a +Subproject commit ab193a9f176634383f35874f7b19e07c113fac38