mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Fix "Non-negative number" issue with large bytes fields
This commit is contained in:
parent
e0556af742
commit
3918362743
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ namespace TL
|
|||
bytes = reader.ReadBytes(length);
|
||||
else
|
||||
{
|
||||
length = reader.ReadInt16() + (reader.ReadByte() << 16);
|
||||
length = reader.ReadUInt16() + (reader.ReadByte() << 16);
|
||||
bytes = reader.ReadBytes(length);
|
||||
length += 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue