From 5ee6a4ea6b3e57d586e500309f1b6ce64e39dfee Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 21 Apr 2020 11:07:50 +0300 Subject: [PATCH] Ignore invalid stickers stored in the database. GitOrigin-RevId: ad7a1a976f37b4864a990538e568d9c4a4b4e555 --- td/telegram/StickersManager.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/td/telegram/StickersManager.hpp b/td/telegram/StickersManager.hpp index 6366811cf..96c6ad7cc 100644 --- a/td/telegram/StickersManager.hpp +++ b/td/telegram/StickersManager.hpp @@ -72,9 +72,8 @@ FileId StickersManager::parse_sticker(bool in_sticker_set, ParserT &parser) { Slice data = parser.template fetch_string_raw(parser.get_left_len()); for (auto c : data) { if (c != '\0') { - LOG_CHECK(in_sticker_set_stored == in_sticker_set) - << in_sticker_set << " " << in_sticker_set_stored << " " << parser.version() << " " << sticker->is_mask - << " " << has_sticker_set_access_hash << " " << format::as_hex_dump<4>(data); + parser.set_error("Invalid sticker set is stored in the database"); + break; } } parser.set_error("Zero sticker set is stored in the database");