diff options
author | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | 2012-02-28 03:19:21 +0000 |
---|---|---|
committer | arthurhsu@google.com <arthurhsu@google.com@672e30a5-4c29-85ac-ac6d-611c735e0a51> | 2012-02-28 03:19:21 +0000 |
commit | 127cef2a54a5b6e6777761d550c1ec90e736383f (patch) | |
tree | 6219d606da70cd1f721eca15df6f0559f5ca1d6e /sfntly/table/bitmap/index_sub_table_format2.cc | |
parent | 8f7575736031a19220e1a36ab2eb21c6d447dfef (diff) | |
download | src-127cef2a54a5b6e6777761d550c1ec90e736383f.tar.gz |
Work around Apple MacOS X Lion AppleMyungjo font bug.
git-svn-id: http://sfntly.googlecode.com/svn/trunk/cpp/src@128 672e30a5-4c29-85ac-ac6d-611c735e0a51
Diffstat (limited to 'sfntly/table/bitmap/index_sub_table_format2.cc')
-rw-r--r-- | sfntly/table/bitmap/index_sub_table_format2.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfntly/table/bitmap/index_sub_table_format2.cc b/sfntly/table/bitmap/index_sub_table_format2.cc index b3bffda..ce73e9b 100644 --- a/sfntly/table/bitmap/index_sub_table_format2.cc +++ b/sfntly/table/bitmap/index_sub_table_format2.cc @@ -139,6 +139,9 @@ IndexSubTableFormat2::Builder::CreateBuilder(ReadableFontData* data, ReadableFontDataPtr new_data; new_data.Attach(down_cast<ReadableFontData*>( data->Slice(index_sub_table_offset, length))); + if (new_data == NULL) { + return NULL; + } IndexSubTableFormat2BuilderPtr output = new IndexSubTableFormat2::Builder(new_data, first_glyph_index, |