From 6e1c3eaf7005d06c89f0807f693aadd835aa0468 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 28 Jan 2019 14:12:41 -0500 Subject: [PATCH] Fix sign comparison error --- src/hb-open-file.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-open-file.hh b/src/hb-open-file.hh index de22ed55d..32a223cdf 100644 --- a/src/hb-open-file.hh +++ b/src/hb-open-file.hh @@ -154,7 +154,8 @@ typedef struct OffsetTable c->align (4); const char *end = (const char *) c->head; - if (items[i].tag == HB_OT_TAG_head && end - start >= head::static_size) + if (items[i].tag == HB_OT_TAG_head && + (unsigned) (end - start) >= head::static_size) { head *h = (head *) start; checksum_adjustment = &h->checkSumAdjustment;