projects
/
apps
/
home
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c2ca8
)
Don't fail sanitize on NULL data
author
Behdad Esfahbod
<behdad@behdad.org>
Tue, 11 May 2010 00:07:56 +0000
(20:07 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Tue, 11 May 2010 00:07:56 +0000
(20:07 -0400)
src/hb-open-type-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-open-type-private.hh
b/src/hb-open-type-private.hh
index
3f05bf7
..
c7b087e
100644
(file)
--- a/
src/hb-open-type-private.hh
+++ b/
src/hb-open-type-private.hh
@@
-290,6
+290,11
@@
struct Sanitizer
context->init (blob);
+ if (unlikely (!context->start)) {
+ context->finish ();
+ return blob;
+ }
+
Type *t = CastP<Type> (const_cast<char *> (context->start));
sane = t->sanitize (context);