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:
33d13fd
)
[ft] Disallow getting the entire font data with tag=0
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 29 Apr 2010 18:15:32 +0000
(14:15 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 29 Apr 2010 18:16:43 +0000
(14:16 -0400)
src/hb-ft.c
patch
|
blob
|
history
diff --git
a/src/hb-ft.c
b/src/hb-ft.c
index
2174da5
..
f245a04
100644
(file)
--- a/
src/hb-ft.c
+++ b/
src/hb-ft.c
@@
-152,6
+152,9
@@
_get_table (hb_tag_t tag, void *user_data)
FT_ULong length = 0;
FT_Error error;
+ if (HB_UNLIKELY (tag == HB_TAG_NONE))
+ return hb_blob_create_empty ();
+
error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length);
if (error)
return hb_blob_create_empty ();