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

Side by Side Diff: third_party/woff2/src/convert_woff2ttf_fuzzer_new_entry.cc

Issue 2736873002: Update woff2 to cbea7b9 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « third_party/woff2/src/convert_woff2ttf_fuzzer.cc ('k') | third_party/woff2/src/font.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <string>
2 #include "woff2_dec.h"
3
4 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t data_size) {
5 // Decode using newer entry pattern.
6 // Same pattern as woff2_decompress.
7 std::string output(std::min(woff2::ComputeWOFF2FinalSize(data, data_size),
8 woff2::kDefaultMaxSize), 0);
9 woff2::WOFF2StringOut out(&output);
10 woff2::ConvertWOFF2ToTTF(data, data_size, &out);
11 return 0;
12 }
OLDNEW
« no previous file with comments | « third_party/woff2/src/convert_woff2ttf_fuzzer.cc ('k') | third_party/woff2/src/font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698