DescriptionGuard against invalid glyph shaping results
HarfBuzz can fail to shape all glyphs and will return a shape result
shorter than the text length along with debug warnings:
[ERROR:HarfBuzzShaper.cpp(375)] HarfBuzz returned empty glyph buffer after shaping.
[ERROR:HarfBuzzShaper.cpp(672)] Shape result extraction failed.
This patch fixes an SVG crash on the U+180E Mongolian vowel separator
by ensuring CachingWordShaper::individualCharacterRanges returns a
vector as long as the text run length. A DCHECK and test have been added
to protect against this crash in the future.
BUG=613915
Review-Url: https://codereview.chromium.org/2020863002
Cr-Commit-Position: refs/heads/master@{#396668}
(cherry picked from commit 433ceaeabee98073e81d552dee947aa6983efd53)
Committed: https://chromium.googlesource.com/chromium/src/+/46829e208fbf201388eec566299b859dedfab823
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|