Skip to content

Commit

Permalink
fix (urgent): 未使用 long 导致在读取 VarInt 时溢出
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Aug 21, 2024
1 parent 6b87ce6 commit ed3b3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CSharp-OpenBMCLAPI/Modules/AvroParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public List<ApiFileInfo> Parse()

public long ReadLong()
{
int b = this._stream.ReadByte();
int n = b & 0x7F;
long b = this._stream.ReadByte();
long n = b & 0x7F;
int shift = 7;
while ((b & 0x80) != 0)
{
Expand Down

0 comments on commit ed3b3d6

Please sign in to comment.