reminder to update fuzzer on change

This commit is contained in:
Rod Sheeter
2017-07-31 09:14:44 -07:00
parent 7dfff0003d
commit 2c6c5846dd
+1
View File
@@ -32,6 +32,7 @@ int main(int argc, char **argv) {
string filename(argv[1]); string filename(argv[1]);
string outfilename = filename.substr(0, filename.find_last_of(".")) + ".ttf"; string outfilename = filename.substr(0, filename.find_last_of(".")) + ".ttf";
// Note: update woff2_dec_fuzzer_new_entry.cc if this pattern changes.
string input = woff2::GetFileContent(filename); string input = woff2::GetFileContent(filename);
const uint8_t* raw_input = reinterpret_cast<const uint8_t*>(input.data()); const uint8_t* raw_input = reinterpret_cast<const uint8_t*>(input.data());
string output(std::min(woff2::ComputeWOFF2FinalSize(raw_input, input.size()), string output(std::min(woff2::ComputeWOFF2FinalSize(raw_input, input.size()),