commit | e4ae0bc5caeed52e07c7e5939fa4ac38d9e408ab | [log] [tgz] |
---|---|---|
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 21 19:44:39 2014 +0000 |
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed May 21 19:44:39 2014 +0000 |
tree | 6c256861b95ff3870046321c858aa3de53755fe8 | |
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