mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[fuzzing/subset] Make TAP protocol
This commit is contained in:
parent
740a103ba1
commit
e332777763
2 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,8 @@
|
|||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
printf ("TAP version 14\n");
|
||||
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
hb_blob_t *blob = hb_blob_create_from_file_or_fail (argv[i]);
|
||||
|
@ -12,11 +14,16 @@ int main (int argc, char **argv)
|
|||
|
||||
unsigned len = 0;
|
||||
const char *font_data = hb_blob_get_data (blob, &len);
|
||||
printf ("%s (%u bytes)\n", argv[i], len);
|
||||
printf ("# %s (%u bytes)\n", argv[i], len);
|
||||
|
||||
LLVMFuzzerTestOneInput ((const uint8_t *) font_data, len);
|
||||
|
||||
printf ("ok %d - %s\n", i, argv[i]);
|
||||
|
||||
hb_blob_destroy (blob);
|
||||
}
|
||||
|
||||
printf ("1..%d\n", argc - 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ foreach chunk : chunks
|
|||
args: chunk,
|
||||
depends: [hb_shape_fuzzer_exe, libharfbuzz, libharfbuzz_subset],
|
||||
workdir: meson.current_build_dir() / '..' / '..',
|
||||
priority: 1,
|
||||
protocol: 'tap',
|
||||
suite: ['fuzzing'],
|
||||
)
|
||||
i += 1
|
||||
|
|
Loading…
Add table
Reference in a new issue