mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix a crash in case of corrupt local data.
This commit is contained in:
@@ -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);
|
||||||
|
Submodule Telegram/lib_webview updated: 672ec0bcbe...91c0e6664d
Reference in New Issue
Block a user