netty5/codec-http2/src/test
Scott Mitchell b701da8d1c HTTP/2 HPACK Integer Encoding Bugs
Motivation:
- Decoder#decodeULE128 has a bounds bug and cannot decode Integer.MAX_VALUE
- Decoder#decodeULE128 doesn't support values greater than can be represented with Java's int data type. This is a problem because there are cases that require at least unsigned 32 bits (max header table size).
- Decoder#decodeULE128 treats overflowing the data type and invalid input the same. This can be misleading when inspecting the error that is thrown.
- Encoder#encodeInteger doesn't support values greater than can be represented with Java's int data type. This is a problem because there are cases that require at least unsigned 32 bits (max header table size).

Modifications:
- Correct the above issues and add unit tests.

Result:
Fixes https://github.com/netty/netty/issues/6210.
2017-01-18 18:36:47 -08:00
..
java/io/netty/handler/codec/http2 HTTP/2 HPACK Integer Encoding Bugs 2017-01-18 18:36:47 -08:00
resources/io/netty/handler/codec/http2/internal/hpack/testdata HTTP/2 Hpack Encoder Cleanup 2016-08-25 09:08:46 -07:00