Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace WP_Ultimo\Dependencies;
require __DIR__ . '/../../vendor/autoload.php';
use WP_Ultimo\Dependencies\Amp\Http\Internal;
$fuzzer->setTarget(function (string $input) {
$result1 = (new Internal\HPackNghttp2())->decode($input, 8192);
$result2 = (new Internal\HPackNative())->decode($input, 8192);
if ($result1 === null || $result2 === null) {
return;
}
if ($result1 !== $result2) {
throw new \Error('Mismatch: ' . \var_export($result1, \true) . ' / ' . \var_export($result2, \true));
}
});
$fuzzer->setMaxLen(1024);