diff options
author | Ting-Yu Wang <anivia@google.com> | 2021-01-15 12:48:58 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-15 12:51:08 -0800 |
commit | f1420cf48418c01694eaf3110ac411915b217d36 (patch) | |
tree | 0c1bfcef59170f85100c4f4c4a0e2a602d699064 /test/packetdrill | |
parent | f7f66c8c6cb5284afe11f4571568866e3c605466 (diff) |
Add sanity check on return values from Write
io.Writer.Write requires err to be non-nil if n < len(v).
We could allow this but it will be irreversible if users depend on this
behavior.
Ported the test that discovered this.
PiperOrigin-RevId: 352065946
Diffstat (limited to 'test/packetdrill')
0 files changed, 0 insertions, 0 deletions