Fix decoding

This commit is contained in:
Ali 2023-02-23 23:56:16 +04:00
parent 9c78b585ae
commit 1984d6d970

View File

@ -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