lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit 610a478acca2c1ad93ea0996603c35e9cb332732
parent 117743d2947f42b2d699e359d5c2a9fcdd8f654f
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sat,  9 Nov 2024 21:16:51 +0900

delete size check,
I think read+4 never gets bigger than size.

Diffstat:
Mparse.go | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/parse.go b/parse.go @@ -30,9 +30,6 @@ func readMsg(r io.Reader) ([]byte, error) { read += n } buf = append(buf, mbuf...) - if uint32(read+4) != size { - return buf, fmt.Errorf("read body: size mismatch: %d != %d", read+4, size) - } return buf, nil }