mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix decoding
This commit is contained in:
parent
9c78b585ae
commit
1984d6d970
@ -839,7 +839,7 @@ public final class PostboxDecoder {
|
||||
memcpy(&valueLength, bytes + offset, 4)
|
||||
offset += 4
|
||||
var i: Int32 = 0
|
||||
while i < length {
|
||||
while i < valueLength {
|
||||
if offset + 4 > length {
|
||||
offset = 0
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user