Avoid hitting assert on XML export

* Fixes #11365
This commit is contained in:
Jonathan White 2024-10-15 07:49:01 -04:00
parent 02881889d5
commit 4f8c204096

View File

@ -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);
}