[fuzz-shape] Verify shape output

Let the fuzzers loose on shape verify.
This commit is contained in:
Behdad Esfahbod 2022-02-13 13:22:08 -06:00
parent 9c0c31dfaa
commit 189f65344a
1 changed files with 1 additions and 1 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);