| Index: test/validator-checker.cc
|
| diff --git a/test/validator-checker.cc b/test/validator-checker.cc
|
| old mode 100644
|
| new mode 100755
|
| index 92bf0fc3d84012a69adfb0b881ec5abc95b0b122..639641b209f654308bf59e0e7de8779c03900cfe
|
| --- a/test/validator-checker.cc
|
| +++ b/test/validator-checker.cc
|
| @@ -5,9 +5,9 @@
|
| #if !defined(_MSC_VER)
|
| #ifdef __linux__
|
| // Linux
|
| -#include <freetype/ftoutln.h>
|
| #include <ft2build.h>
|
| #include FT_FREETYPE_H
|
| +#include FT_OUTLINE_H
|
| #else
|
| // Mac OS X
|
| #include <ApplicationServices/ApplicationServices.h> // g++ -framework Cocoa
|
| @@ -161,8 +161,9 @@ int main(int argc, char **argv) {
|
| static const size_t kBigPadLen = 1024 * 1024; // 1MB
|
| uint8_t *trans_font = new uint8_t[orig_len + kBigPadLen];
|
| ots::MemoryStream output(trans_font, orig_len + kBigPadLen);
|
| + ots::OTSContext context;
|
|
|
| - bool result = ots::Process(&output, orig_font, orig_len);
|
| + bool result = context.Process(&output, orig_font, orig_len);
|
| if (!result) {
|
| std::fprintf(stderr, "OK: the malicious font was filtered: %s\n", argv[1]);
|
| return 0;
|
|
|