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_format3.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_format3.cc')
-rw-r--r-- | sfntly/table/bitmap/index_sub_table_format3.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfntly/table/bitmap/index_sub_table_format3.cc b/sfntly/table/bitmap/index_sub_table_format3.cc index b3e418f..e2679b7 100644 --- a/sfntly/table/bitmap/index_sub_table_format3.cc +++ b/sfntly/table/bitmap/index_sub_table_format3.cc @@ -134,6 +134,9 @@ IndexSubTableFormat3::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; + } IndexSubTableFormat3BuilderPtr output = new IndexSubTableFormat3::Builder(new_data, first_glyph_index, |