File tree 1 file changed +3
-4
lines changed
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -422,10 +422,9 @@ public static int Decode(ReadOnlySpan<byte> src, ref byte[] dstArray)
422
422
int lookupTableIndex = 0 ;
423
423
int lookupIndex ;
424
424
425
- ushort acc = 0 ;
425
+ uint acc = 0 ;
426
426
int bitsInAcc = 0 ;
427
427
428
-
429
428
int i = 0 ;
430
429
int j = 0 ;
431
430
while ( i < src . Length )
@@ -440,7 +439,7 @@ public static int Decode(ReadOnlySpan<byte> src, ref byte[] dstArray)
440
439
{
441
440
lookupIndex = ( byte ) ( acc >> ( bitsInAcc - 8 ) ) ;
442
441
443
- ushort lookupValue = decodingTree [ ( lookupTableIndex << 8 ) + lookupIndex ] ;
442
+ int lookupValue = decodingTree [ ( lookupTableIndex << 8 ) + lookupIndex ] ;
444
443
445
444
if ( lookupValue < 0x80_00 )
446
445
{
@@ -499,7 +498,7 @@ public static int Decode(ReadOnlySpan<byte> src, ref byte[] dstArray)
499
498
// Lookup index has to be 8 bits aligned to MSB
500
499
lookupIndex = ( byte ) ( acc << ( 8 - bitsInAcc ) ) ;
501
500
502
- ushort lookupValue = decodingTree [ ( lookupTableIndex << 8 ) + lookupIndex ] ;
501
+ int lookupValue = decodingTree [ ( lookupTableIndex << 8 ) + lookupIndex ] ;
503
502
504
503
if ( lookupValue < 0x80_00 )
505
504
{
You can’t perform that action at this time.
0 commit comments