mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 14:53:35 +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)
|
memcpy(&valueLength, bytes + offset, 4)
|
||||||
offset += 4
|
offset += 4
|
||||||
var i: Int32 = 0
|
var i: Int32 = 0
|
||||||
while i < length {
|
while i < valueLength {
|
||||||
if offset + 4 > length {
|
if offset + 4 > length {
|
||||||
offset = 0
|
offset = 0
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user