-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast size as int64 to remove overflow checks (#605)
Three small fixes: - [`io.ReadFull`](https://pkg.go.dev/io#ReadFull) on prefixes can't return an `io.EOF` if `prefixBytes > 0` - Cast `size` to `int64` over `int` to avoid the overflow check - `prefixBytesRead` must equal 5 on success --------- Co-authored-by: Akshay Shah <[email protected]>
- Loading branch information
1 parent
ca44397
commit 96effed
Showing
1 changed file
with
14 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters