From 4f8c20409628f7cedba7f67ff398a1158c1d0d6f Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 15 Oct 2024 07:49:01 -0400 Subject: [PATCH] Avoid hitting assert on XML export * Fixes #11365 --- src/format/KdbxWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/format/KdbxWriter.cpp b/src/format/KdbxWriter.cpp index b7758c751..1e4923934 100644 --- a/src/format/KdbxWriter.cpp +++ b/src/format/KdbxWriter.cpp @@ -71,7 +71,8 @@ void KdbxWriter::extractDatabase(QByteArray& xmlOutput, Database* db) QBuffer buffer; buffer.setBuffer(&xmlOutput); buffer.open(QIODevice::WriteOnly); - KdbxXmlWriter writer(db->formatVersion()); + KdbxXmlWriter::BinaryIdxMap idxMap; + KdbxXmlWriter writer(db->formatVersion(), idxMap); writer.disableInnerStreamProtection(true); writer.writeDatabase(&buffer, db); }