From d15041be7dbbfbd17f1ec21f3acf4a6c6e91ba9f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jul 2022 13:39:21 -0600 Subject: [PATCH] [GSUB/GPOS] Trace toplevel sanitize --- src/OT/Layout/GPOS/GPOS.hh | 5 ++++- src/OT/Layout/GSUB/GSUB.hh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/OT/Layout/GPOS/GPOS.hh b/src/OT/Layout/GPOS/GPOS.hh index 23b0b090a..72829377a 100644 --- a/src/OT/Layout/GPOS/GPOS.hh +++ b/src/OT/Layout/GPOS/GPOS.hh @@ -44,7 +44,10 @@ struct GPOS : GSUBGPOS } bool sanitize (hb_sanitize_context_t *c) const - { return GSUBGPOS::sanitize (c); } + { + TRACE_SANITIZE (this); + return_trace (GSUBGPOS::sanitize (c)); + } HB_INTERNAL bool is_blocklisted (hb_blob_t *blob, hb_face_t *face) const; diff --git a/src/OT/Layout/GSUB/GSUB.hh b/src/OT/Layout/GSUB/GSUB.hh index 750dca1da..c0ff098f4 100644 --- a/src/OT/Layout/GSUB/GSUB.hh +++ b/src/OT/Layout/GSUB/GSUB.hh @@ -32,7 +32,10 @@ struct GSUB : GSUBGPOS } bool sanitize (hb_sanitize_context_t *c) const - { return GSUBGPOS::sanitize (c); } + { + TRACE_SANITIZE (this); + return_trace (GSUBGPOS::sanitize (c)); + } HB_INTERNAL bool is_blocklisted (hb_blob_t *blob, hb_face_t *face) const;