[fuzz] Disable verification for now.

This commit is contained in:
Behdad Esfahbod 2022-01-28 14:07:29 -07:00
parent 6596e42d16
commit 61856359cb
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
{ {
const char text[] = "ABCDEXYZ123@_%&)*$!"; const char text[] = "ABCDEXYZ123@_%&)*$!";
hb_buffer_t *buffer = hb_buffer_create (); hb_buffer_t *buffer = hb_buffer_create ();
hb_buffer_set_flags (buffer, HB_BUFFER_FLAG_VERIFY); // hb_buffer_set_flags (buffer, HB_BUFFER_FLAG_VERIFY);
hb_buffer_add_utf8 (buffer, text, -1, 0, -1); hb_buffer_add_utf8 (buffer, text, -1, 0, -1);
hb_buffer_guess_segment_properties (buffer); hb_buffer_guess_segment_properties (buffer);
hb_shape (font, buffer, nullptr, 0); hb_shape (font, buffer, nullptr, 0);
@ -51,7 +51,7 @@ extern "C" int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
text32[10] = test_font (font, text32[15]) % 256; text32[10] = test_font (font, text32[15]) % 256;
hb_buffer_t *buffer = hb_buffer_create (); hb_buffer_t *buffer = hb_buffer_create ();
hb_buffer_set_flags (buffer, HB_BUFFER_FLAG_VERIFY); // hb_buffer_set_flags (buffer, HB_BUFFER_FLAG_VERIFY);
hb_buffer_add_utf32 (buffer, text32, sizeof (text32) / sizeof (text32[0]), 0, -1); hb_buffer_add_utf32 (buffer, text32, sizeof (text32) / sizeof (text32[0]), 0, -1);
hb_buffer_guess_segment_properties (buffer); hb_buffer_guess_segment_properties (buffer);
hb_shape (font, buffer, nullptr, 0); hb_shape (font, buffer, nullptr, 0);