diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-21 19:44:39 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-21 19:44:39 +0000 |
commit | e4ae0bc5caeed52e07c7e5939fa4ac38d9e408ab (patch) | |
tree | 6c256861b95ff3870046321c858aa3de53755fe8 /samplecode/SampleShaderText.cpp | |
parent | 5408f8ffdbca9efd787304d62dde6b142c3f0f82 (diff) |
Fix undefined behavior in DirectWrite GDI compatible metrics.
GetGdiCompatibleGlyphMetrics checks the matrix passed to it.
If the matrix has any NaNs or INFs or otherwise looks bad, it returns
E_INVALIDARG and so the advances will be zero.
BUG=skia:2579
R=reed@google.com
Review URL: https://codereview.chromium.org/298863002
git-svn-id: http://skia.googlecode.com/svn/trunk@14829 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleShaderText.cpp')
0 files changed, 0 insertions, 0 deletions