|
_chunkSize = int.Parse(RemoveChunkExtension(_saved.ToString()), NumberStyles.HexNumber, CultureInfo.InvariantCulture); |
This might eat whitespace instead of rejecting it.
This is a better check:
|
if (!Utf8Parser.TryParse(currentLine, out ulong chunkSize, out int bytesConsumed, 'X')) |
runtime/src/libraries/System.Net.HttpListener/src/System/Net/Managed/ChunkStream.cs
Line 291 in 8c61077
This might eat whitespace instead of rejecting it.
This is a better check:
runtime/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ChunkedEncodingReadStream.cs
Line 333 in 8c61077