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:
3a48c77
)
Check magicNumber in head table during sanitize
author
Behdad Esfahbod
<behdad@behdad.org>
Sat, 2 Jan 2016 13:25:18 +0000
(13:25 +0000)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sat, 2 Jan 2016 13:25:36 +0000
(13:25 +0000)
src/hb-ot-head-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-head-table.hh
b/src/hb-ot-head-table.hh
index fc351cfb48e988d7071bc097e101c15c89625ccb..60644be1045018ffa639e59a5c2590fe3e411a39 100644
(file)
--- a/
src/hb-ot-head-table.hh
+++ b/
src/hb-ot-head-table.hh
@@
-55,7
+55,9
@@
struct head
inline bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
- return_trace (c->check_struct (this) && likely (version.major == 1));
+ return_trace (c->check_struct (this) &&
+ version.major == 1 &&
+ magicNumber == 0x5F0F3CF5u);
}
protected: