Ignore invalid stickers stored in the database.
GitOrigin-RevId: ad7a1a976f37b4864a990538e568d9c4a4b4e555
This commit is contained in:
parent
8681b76de2
commit
5ee6a4ea6b
@ -72,9 +72,8 @@ FileId StickersManager::parse_sticker(bool in_sticker_set, ParserT &parser) {
|
|||||||
Slice data = parser.template fetch_string_raw<Slice>(parser.get_left_len());
|
Slice data = parser.template fetch_string_raw<Slice>(parser.get_left_len());
|
||||||
for (auto c : data) {
|
for (auto c : data) {
|
||||||
if (c != '\0') {
|
if (c != '\0') {
|
||||||
LOG_CHECK(in_sticker_set_stored == in_sticker_set)
|
parser.set_error("Invalid sticker set is stored in the database");
|
||||||
<< in_sticker_set << " " << in_sticker_set_stored << " " << parser.version() << " " << sticker->is_mask
|
break;
|
||||||
<< " " << has_sticker_set_access_hash << " " << format::as_hex_dump<4>(data);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
parser.set_error("Zero sticker set is stored in the database");
|
parser.set_error("Zero sticker set is stored in the database");
|
||||||
|
Reference in New Issue
Block a user