mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 04:28:26 -04:00
parent
154f1673e9
commit
c6105a08ab
3 changed files with 19 additions and 2 deletions
|
@ -357,7 +357,7 @@ void KeePass2XmlReader::parseIcon()
|
|||
while (!m_xml.error() && m_xml.readNextStartElement()) {
|
||||
if (m_xml.name() == "UUID") {
|
||||
uuid = readUuid();
|
||||
uuidSet = true;
|
||||
uuidSet = !uuid.isNull();
|
||||
}
|
||||
else if (m_xml.name() == "Data") {
|
||||
icon.loadFromData(readBinary());
|
||||
|
@ -1104,7 +1104,10 @@ int KeePass2XmlReader::readNumber()
|
|||
Uuid KeePass2XmlReader::readUuid()
|
||||
{
|
||||
QByteArray uuidBin = readBinary();
|
||||
if (uuidBin.length() != Uuid::Length) {
|
||||
if (uuidBin.isEmpty()) {
|
||||
return Uuid();
|
||||
}
|
||||
else if (uuidBin.length() != Uuid::Length) {
|
||||
if (m_strictMode) {
|
||||
raiseError("Invalid uuid value");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue