OLD | NEW |
1 // Copyright 2016 The PDFium Authors. All rights reserved. | 1 // Copyright 2016 The PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <cstdint> | 5 #include <cstdint> |
6 | 6 |
| 7 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
7 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" | 8 #include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h" |
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | |
9 | 9 |
10 struct DummyLinearizedDictionary { | 10 struct DummyLinearizedDictionary { |
11 int end_of_first_page_offset; | 11 int end_of_first_page_offset; |
12 int number_of_pages; | 12 int number_of_pages; |
13 int first_page_object_number; | 13 int first_page_object_number; |
14 int first_page_number; | 14 int first_page_number; |
15 int primary_hint_stream_offset; | 15 int primary_hint_stream_offset; |
16 int primary_hint_stream_length; | 16 int primary_hint_stream_length; |
17 int shared_hint_table_offset; | 17 int shared_hint_table_offset; |
18 }; | 18 }; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 CPDF_Dictionary* dummy_linearized_dict = new CPDF_Dictionary; | 85 CPDF_Dictionary* dummy_linearized_dict = new CPDF_Dictionary; |
86 | 86 |
87 { | 87 { |
88 HintTableForFuzzing hint_table(&dummy_dict, dummy_linearized_dict); | 88 HintTableForFuzzing hint_table(&dummy_dict, dummy_linearized_dict); |
89 hint_table.Fuzz(data, size); | 89 hint_table.Fuzz(data, size); |
90 } | 90 } |
91 | 91 |
92 dummy_linearized_dict->Release(); | 92 dummy_linearized_dict->Release(); |
93 return 0; | 93 return 0; |
94 } | 94 } |
OLD | NEW |