We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdfef2a commit a8cf647Copy full SHA for a8cf647
lib/Test/Nginx/HTTP3.pm
@@ -1727,7 +1727,13 @@ mask:
1727
& ($level == 3 ? "\x1f" : "\x0f");
1728
my $pnl = unpack("C", substr($buf, 0, 1) & "\x03") + 1;
1729
substr($buf, $offset, $pnl) ^= substr($mask, 1);
1730
- my $pn = unpack("C", substr($buf, $offset, $pnl));
+
1731
+ my $pn = 0;
1732
+ for my $n (1 .. $pnl) {
1733
+ $pn += unpack("C", substr($buf, $offset + $n - 1, 1))
1734
+ << ($pnl - $n) * 8;
1735
+ }
1736
1737
my $ad = substr($buf, 0, $offset + $pnl);
1738
return ($ad, $pnl, $pn);
1739
}
0 commit comments