commit | f98c2a67fe051cc92f3205bfc0267ddac90d3a71 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Mon Dec 05 20:37:44 2011 -0800 |
committer | Jeff Brown <jeffbrown@google.com> | Mon Dec 05 20:40:03 2011 -0800 |
tree | fd6a5f4020d564ec18817272514082e9eff0efbb | |
parent | 9a856f4ee7b49f735e31b57a09bee2f033ce20a5 [diff] |
Fix memory corruption issues in TextLayoutCache. (DO NOT MERGE) Ensure log_clusters array is big enough. Bug: 5714171 Explicitly handle the cases where the entire string or a single run might have a length of 0. Harfbuzz assumes the length of the item is at least 1. If the length is zero, then it will clobber memory at index -1 into the log_clusters array. Bug: 5705479 Change-Id: If28a9866221081f69973c1d12d7fe0cf8db2edd0