From b645a08e7eef7ad09e7cca53adf566a58fc6ff14 Mon Sep 17 00:00:00 2001 From: Dave Yarwood Date: Sun, 12 Jan 2020 21:16:07 -0500 Subject: [PATCH] bugfix: correctly handle padding 0-bytes at the end of a packet --- osc/osc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/osc.go b/osc/osc.go index 86b5861..cdf9606 100644 --- a/osc/osc.go +++ b/osc/osc.go @@ -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