Files
swift-nio-ssl/Sources/NIOSSL
Cory Benfield 55f8a1a581 Fix threading violation in KeyLogCallbackManager (#250)
Motivation:

The KeyLogCallbackManager belongs on an SSLContext, and so may be
invoked from multiple threads. However, it incorrectly cached a
ByteBuffer on its storage, leading to thread unsafety. This tends to
manifest in assertion failures, but could lead to arbitrary data
corruption or double frees.

Modifications:

- Remove the cached bytebuffer.
- Add probabilistic test.

Result:

No more thread-safety violations.
2020-10-14 14:35:12 +01:00
..
2019-03-01 17:25:33 +00:00