netty5/codec-http/src
Norman Maurer dcbfe17eeb
Prevent any leaks when HttpPostStandardRequestDecoder constructor throws (#9837)
Motivation:

HttpPostStandardRequestDecoder may throw multiple different exceptions in the constructor which could lead to memory leaks. We need to guard against this by explicit catch all of them and rethrow after we released any allocated memory.

Modifications:

- Catch, destroy and rethrow in any case
- Ensure we correctly wrap IllegalArgumentExceptions
- Add unit tests

Result:

Fixes https://github.com/netty/netty/issues/9829
2019-12-04 13:58:03 +01:00
..
main Prevent any leaks when HttpPostStandardRequestDecoder constructor throws (#9837) 2019-12-04 13:58:03 +01:00
test Prevent any leaks when HttpPostStandardRequestDecoder constructor throws (#9837) 2019-12-04 13:58:03 +01:00