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:
1c76c8f
)
[CBDT] Simplify sanitize
author
Behdad Esfahbod
<behdad@behdad.org>
Mon, 15 Oct 2018 03:37:57 +0000
(20:37 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Mon, 15 Oct 2018 03:37:57 +0000
(20:37 -0700)
src/hb-ot-color-cbdt-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-color-cbdt-table.hh
b/src/hb-ot-color-cbdt-table.hh
index
561c599
..
01e0f9d
100644
(file)
--- a/
src/hb-ot-color-cbdt-table.hh
+++ b/
src/hb-ot-color-cbdt-table.hh
@@
-241,12
+241,7
@@
struct IndexSubtableArray
inline bool sanitize (hb_sanitize_context_t *c, unsigned int count) const
{
TRACE_SANITIZE (this);
- if (unlikely (!c->check_array (indexSubtablesZ.arrayZ, count)))
- return_trace (false);
- for (unsigned int i = 0; i < count; i++)
- if (unlikely (!indexSubtablesZ[i].sanitize (c, this)))
- return_trace (false);
- return_trace (true);
+ return_trace (indexSubtablesZ.sanitize (c, count, this));
}
public: