mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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)
|
||||
|| (!dc && !access)
|
||||
|| !thumb
|
||||
|| !videoThumb
|
||||
|| (thumb->valid()
|
||||
&& (!storage || !storage->isDocumentThumbnail()))) {
|
||||
stream.setStatus(QDataStream::ReadCorruptData);
|
||||
|
Reference in New Issue
Block a user