netty5/buffer/src
xiaoheng1 c0f1e9bd21 Fix public int read() throws IOException method exceeds the limit of length (#9306)
Motivation:

buffer.isReadable() should not be used to limit the amount of data that can be read as the amount may be less then was is readable.

Modification:

- Use  available() which takes the length into account
- Add unit test

Result:

Fixes https://github.com/netty/netty/issues/9305
2019-07-01 15:58:05 +02:00
..
main/java/io/netty/buffer Fix public int read() throws IOException method exceeds the limit of length (#9306) 2019-07-01 15:58:05 +02:00
test/java/io/netty/buffer Fix public int read() throws IOException method exceeds the limit of length (#9306) 2019-07-01 15:58:05 +02:00