summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-05-11 10:31:49 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-11 10:35:28 -0700
commit0cb9e1d021607723e008de877a056f2db2a32cef (patch)
tree96a3a3f71a80ba6b8527b453e79443af5ef2e7c8 /pkg/sentry/socket
parentaf2bc1c72adbf09209c41ef60fffc54e913eaba6 (diff)
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
Diffstat (limited to 'pkg/sentry/socket')
0 files changed, 0 insertions, 0 deletions