mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
More strict check for custom emoji dimensions.
This commit is contained in:
@@ -483,8 +483,7 @@ bool DocumentData::checkWallPaperProperties() {
|
||||
}
|
||||
if (type != FileDocument
|
||||
|| !hasThumbnail()
|
||||
|| !dimensions.width()
|
||||
|| !dimensions.height()
|
||||
|| dimensions.isEmpty()
|
||||
|| dimensions.width() > Storage::kMaxWallPaperDimension
|
||||
|| dimensions.height() > Storage::kMaxWallPaperDimension
|
||||
|| size > Storage::kMaxWallPaperInMemory) {
|
||||
|
Reference in New Issue
Block a user