projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9dabc0
)
sanitize variationStore in CFF2 against its size
author
Michiharu Ariza
<ariza@adobe.com>
Thu, 6 Dec 2018 01:04:55 +0000
(17:04 -0800)
committer
Michiharu Ariza
<ariza@adobe.com>
Thu, 6 Dec 2018 01:04:55 +0000
(17:04 -0800)
src/hb-ot-cff2-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-cff2-table.hh
b/src/hb-ot-cff2-table.hh
index
178acf0
..
de2b1b2
100644
(file)
--- a/
src/hb-ot-cff2-table.hh
+++ b/
src/hb-ot-cff2-table.hh
@@
-115,7
+115,7
@@
struct CFF2VariationStore
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
- return_trace (likely (c->check_struct (this)) && varStore.sanitize (c));
+ return_trace (likely (c->check_struct (this)) &&
c->check_range (&varStore, size) &&
varStore.sanitize (c));
}
inline bool serialize (hb_serialize_context_t *c, const CFF2VariationStore *varStore)