Add HPACK integer validation to prevent wrapping and overlong encodings. (dotnet...
authorCory Nelson <phrosty@gmail.com>
Wed, 26 Jun 2019 16:16:08 +0000 (09:16 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 16:16:08 +0000 (09:16 -0700)
commitf8df117c023935be83f6d6ee5c7241415fb96d16
treec688cfa916686da61df7655e5754b158339eefa1
parent6828c22259bdd0877e9de8a72f753e204359344c
Add HPACK integer validation to prevent wrapping and overlong encodings. (dotnet/corefx#38910)

* Add HPACK integer validation to prevent wrapping and overlong encodings. Resolves dotnet/corefx#38626.
* Improve documentation and add an assert to help avoid confusion and misuse of IntegerDecoder.StartDecode.

Commit migrated from https://github.com/dotnet/corefx/commit/5b29cd3efe43f83bee732263e4113448ae60d4d3
src/libraries/System.Net.Http/src/Resources/Strings.resx
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HPack/IntegerDecoder.cs
src/libraries/System.Net.Http/tests/UnitTests/HPack/HPackIntegerTest.cs