commit | 6e1c3eaf7005d06c89f0807f693aadd835aa0468 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Mon Jan 28 14:12:41 2019 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon Jan 28 14:12:41 2019 -0500 |
tree | 5061ba3acea3fac8ad03e8a017700036a4e3d6fe | |
parent | 9db7a7da6339eacbb6c699fa1939bbd7e9e148f5 [diff] |
Fix sign comparison error
diff --git a/src/hb-open-file.hh b/src/hb-open-file.hh index de22ed5..32a223c 100644 --- a/src/hb-open-file.hh +++ b/src/hb-open-file.hh
@@ -154,7 +154,8 @@ 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;