netty5/codec-redis/src
Scott Mitchell 742ee76424 RedisDecoder infinite loop
Motivation:
RedisDecoder can get into an infinite loop while decoding bulk strings if the final \r and \n to indicate the end of content are split on ByteBuf boundaries.

Modifications:
- We should break out of the decode loop if remainingBulkLength is 0 and we don't have enough data to read EOL

Result:
No more infinite loop in RedisDecoder#decodeBulkStringContent.
2017-05-30 08:53:36 -07:00
..
main/java/io/netty/handler/codec/redis RedisDecoder infinite loop 2017-05-30 08:53:36 -07:00
test/java/io/netty/handler/codec/redis RedisDecoder infinite loop 2017-05-30 08:53:36 -07:00