Skip to content

Commit

Permalink
fix bug; out of range unmarshalMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
spikeekips committed Jul 3, 2024
1 parent 5a398aa commit e9e644d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions network/quicmemberlist/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ func (t *Transport) receiveRaw(id string, b []byte, addr net.Addr) error {

e := util.StringError("receive raw data")

if len(b) < 1 {
return nil
}

dt, raddr, rb, err := unmarshalMsg(b)
if err != nil {
return e.Wrap(err)
Expand Down

0 comments on commit e9e644d

Please sign in to comment.