diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 23:19:29 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 23:19:29 +0000 |
commit | 7525e31ba7dc94437e9f950af08919f3e1adbc98 (patch) | |
tree | f1e5ce51156b5bd28f35f6d03d845a9e6c83af2e /third_party | |
parent | b689eb4590b72175a73736d90989009a1f4e6fbc (diff) | |
download | chromium_src-7525e31ba7dc94437e9f950af08919f3e1adbc98.zip chromium_src-7525e31ba7dc94437e9f950af08919f3e1adbc98.tar.gz chromium_src-7525e31ba7dc94437e9f950af08919f3e1adbc98.tar.bz2 |
harfbuzz: Add Behdad's patch to fix Thai crashes on Linux.
This appears to prevent some renderer crashes that are
fairly easy to trigger with Thai pages on Chrome OS.
BUG=chromium:75210,chromium-os:15103
TEST=manual: built chromeos-chrome and checked that http://www.pungame.com/sale.html and http://happy.teenee.com/game/ no longer cause crashes
Review URL: http://codereview.chromium.org/7000012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/harfbuzz/chromium.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/harfbuzz/chromium.patch b/third_party/harfbuzz/chromium.patch index 0f20dfd1..0705356 100644 --- a/third_party/harfbuzz/chromium.patch +++ b/third_party/harfbuzz/chromium.patch @@ -35,3 +35,17 @@ index f3ec8e1..2b0dfde 100644 // first char in a run is never (treated as) a mark int cStart = 0; +diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c +index 356dc01..db5ea0a 100644 +--- a/src/harfbuzz-gpos.c ++++ b/src/harfbuzz-gpos.c +@@ -2976,6 +2976,9 @@ static HB_Error Lookup_MarkMarkPos( GPOS_Instance* gpi, + j--; + } + ++ if ( i > buffer->in_pos ) ++ return HB_Err_Not_Covered; ++ + error = _HB_OPEN_Coverage_Index( &mmp->Mark2Coverage, IN_GLYPH( j ), + &mark2_index ); + if ( error ) |