More strict check for custom emoji dimensions.

This commit is contained in:
John Preston
2024-01-04 17:20:45 +04:00
parent 66afcbdae8
commit bb31357c58
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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) {