Files
swift-nio/Sources/NIO
Johannes Weiss 96d9e44b26 ByteBuffer: viewBytes should handle negative values (#1082)
Motivation:

All ByteBuffer API that is used to parse potentially untrusted data
should be resilient against negative indices, offsets, and lenghts.
Unfortunately, ByteBuffer.viewBytes(at:length:) was not.

Modifications:

Make ByteBuffer.viewBytes(at:length:) resilient against negative values.

Result:

Fewer crashes.
2019-07-25 15:24:33 +01:00
..
2019-02-01 15:34:59 +00:00
2018-12-07 21:15:34 +00:00