diff options
author | Raph Levien <raph@google.com> | 2016-01-06 14:31:23 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-02-26 14:33:57 -0800 |
commit | 2a389cd3a5f8f5dc787218644f64e101a90a6a6f (patch) | |
tree | e7ae500cfc93b9f8438a99a8cd7889fede9c650e /include | |
parent | f6771c0a11d5030e84a9997d77479a0ee03a2398 (diff) | |
download | android_frameworks_minikin-2a389cd3a5f8f5dc787218644f64e101a90a6a6f.tar.gz android_frameworks_minikin-2a389cd3a5f8f5dc787218644f64e101a90a6a6f.tar.bz2 android_frameworks_minikin-2a389cd3a5f8f5dc787218644f64e101a90a6a6f.zip |
Reject fonts with invalid ranges in cmap
A corrupt or malicious font may have a negative size in its cmap
range, which in turn could lead to memory corruption. This patch
detects the case and rejects the font, and also includes an assertion
in the sparse bit set implementation if we missed any such case.
External issue:
https://code.google.com/p/android/issues/detail?id=192618
Bug: 26413177
Change-Id: Icc0c80e4ef389abba0964495b89aa0fae3e9f4b2
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions