netty5/codec/src
Trustin Lee 13a0a36db3 Make JsonObjectDecoder discard everything after stream corruption
Motivation:

There's no way to recover from a corrupted JSON stream. The current
implementation will raise an infinite exception storm when a peer sends
a large corrupted stream.

Modification:

Discard everything once stream corruption is detected.

Result:

Fixes a buffer leak
Fixes exception storm
2014-07-04 11:15:43 +09:00
..
main/java/io/netty/handler/codec Make JsonObjectDecoder discard everything after stream corruption 2014-07-04 11:15:43 +09:00
test Fix a buffer leak in JsonObjectDecoderTest 2014-07-03 19:58:31 +09:00