Files
swift-nio/Sources
Johannes Weiss 072babe443 ByteBuffer: deal correctly with underreporting ContiguousCollections (#501)
Motivation:

ContiguousCollections shouldn't give access to more than `count` bytes
via `withUnsafeBytes` but if they do we should still handle this
correctly and only copy `count` bytes.

Modifications:

- copy an upper limit of `count` bytes
- fail hard if `withUnsafeBytes` offers fewer bytes as we can't do
  anything sensible then.

Result:

even illegal `ContiguousCollection` implementations don't cause issues.
2018-07-12 11:56:40 +01:00
..
2018-06-09 18:18:24 -07:00
2017-12-15 09:50:12 +00:00
2018-06-09 18:18:24 -07:00
2018-03-19 14:45:32 +01:00