gvisor/pkg/tcpip/buffer
Bhasker Hariharan 0cb9e1d021 Fix view.ToVectorisedView().
view.ToVectorisedView() now just returns an empty vectorised
view if the view is of zero length. Earlier it would return
a VectorisedView of zero length but with 1 empty view. This
has been a source of bugs as lower layers don't expect
zero length views in VectorisedViews.

VectorisedView.AppendView() now is a no-op if the view being
appended is of zero length.

Fixes #2658

PiperOrigin-RevId: 310942269
2020-05-11 10:35:28 -07:00
..
BUILD Standardize on tools directory. 2020-01-27 12:21:00 -08:00
prependable.go Use PacketBuffers for outgoing packets. 2019-11-14 10:15:38 -08:00
view.go Fix view.ToVectorisedView(). 2020-05-11 10:35:28 -07:00
view_test.go Fix view.ToVectorisedView(). 2020-05-11 10:35:28 -07:00