Skip to content

Commit

Permalink
bugfix: correctly handle padding 0-bytes at the end of a packet
Browse files Browse the repository at this point in the history
  • Loading branch information
daveyarwood committed Jan 13, 2020
1 parent 87688fa commit b645a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions osc/osc.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,10 @@ func readBundle(reader *bufio.Reader, start *int, end int) (*Bundle, error) {
}
*start += 4

if length == 0 {
continue
}

p, err := readPacket(reader, start, end)
if err != nil {
return nil, err
Expand Down

0 comments on commit b645a08

Please sign in to comment.