netty5/codec-http/src/main/java/io/netty/handler/codec
Norman Maurer 1c6191c166
Do not depend on the implementation detail of Unpooled.buffer(int) when accessing backing array. (#8865)
Motivation:

We should not depend on the implementation detail of Unpooled.buffer(int) to allocate the exact size of backing byte[] as depending on the implementation it may return a buffer with a bigger backing array.

Modifications:

Explicit allocate the byte[] and wrap it in the ByteBuf. This way we are sure that ByteBuf.array() returns an byte[] which has the exact length and content we expect.

Result:

More correct and safe usage of ByteBuf.array()
2019-02-15 09:38:36 -08:00
..
http Do not depend on the implementation detail of Unpooled.buffer(int) when accessing backing array. (#8865) 2019-02-15 09:38:36 -08:00
rtsp Compare HttpMethod by reference (#8815) 2019-01-30 21:17:00 +01:00
spdy use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 16:01:49 +01:00