mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix a crash in case of corrupt local data.
This commit is contained in:
parent
6cbee72b8a
commit
cf6dbfaf55
2 changed files with 2 additions and 1 deletions
|
@ -149,6 +149,7 @@ DocumentData *Document::readFromStreamHelper(
|
||||||
if ((stream.status() != QDataStream::Ok)
|
if ((stream.status() != QDataStream::Ok)
|
||||||
|| (!dc && !access)
|
|| (!dc && !access)
|
||||||
|| !thumb
|
|| !thumb
|
||||||
|
|| !videoThumb
|
||||||
|| (thumb->valid()
|
|| (thumb->valid()
|
||||||
&& (!storage || !storage->isDocumentThumbnail()))) {
|
&& (!storage || !storage->isDocumentThumbnail()))) {
|
||||||
stream.setStatus(QDataStream::ReadCorruptData);
|
stream.setStatus(QDataStream::ReadCorruptData);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 672ec0bcbea6ca5c703ef3a4ac7f1f1b8dc652d6
|
Subproject commit 91c0e6664db4a444d630e3a0101f599a92df1dd9
|
Loading…
Add table
Reference in a new issue