Fix decoding

This commit is contained in:
Ali 2023-02-23 23:56:16 +04:00
parent 5beffde0ad
commit faf22b7001

View File

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