Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: src/woff2.cc

Issue 14758005: [OTS] Fix WOFF2 decode error (Closed) Base URL: http://ots.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ots.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/woff2.cc
===================================================================
--- src/woff2.cc (revision 100)
+++ src/woff2.cc (working copy)
@@ -656,7 +656,7 @@
if (glyph_size + 3 < glyph_size) {
return OTS_FAILURE();
}
- glyph_size = ots::Round4(glyph_size);
+ glyph_size = ots::Round2(glyph_size);
if (glyph_size > dst_size - loca_offset) {
// This shouldn't happen, but this test defensively maintains the
// invariant that loca_offset <= dst_size.
« no previous file with comments | « src/ots.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698