Skip to content

Commit

Permalink
Fix #includes in libfuzzer so pdfium can be rolled
Browse files Browse the repository at this point in the history
Note: pdfium bots don't seem to touch these files.
Review-Url: https://codereview.chromium.org/2379973005
  • Loading branch information
npm1 authored and Commit bot committed Sep 30, 2016
1 parent 5b49309 commit 43c8a6a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
8 changes: 4 additions & 4 deletions testing/libfuzzer/pdf_codec_jbig2_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

#include <cstdint>

#include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
#include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h"
#include "core/fpdfapi/fpdf_parser/cpdf_stream.h"
#include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h"
#include "core/fxcodec/JBig2_DocumentContext.h"
#include "core/fxcodec/codec/ccodec_jbig2module.h"
#include "core/fxcodec/include/JBig2_DocumentContext.h"
#include "core/fxcodec/jbig2/JBig2_Context.h"
#include "core/fxge/include/fx_dib.h"
#include "core/fxge/fx_dib.h"

static uint32_t GetInteger(const uint8_t* data) {
return data[0] | data[1] << 8 | data[2] << 16 | data[3] << 24;
Expand Down
2 changes: 1 addition & 1 deletion testing/libfuzzer/pdf_css_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <memory>

#include "core/fxcrt/include/fx_string.h"
#include "core/fxcrt/fx_string.h"
#include "xfa/fde/css/fde_css.h"
#include "xfa/fde/css/fde_csssyntax.h"
#include "xfa/fgas/crt/fgas_stream.h"
Expand Down
4 changes: 2 additions & 2 deletions testing/libfuzzer/pdf_fm2js_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <cstddef>
#include <cstdint>

#include "core/fxcrt/include/fx_basic.h"
#include "core/fxcrt/include/fx_string.h"
#include "core/fxcrt/fx_basic.h"
#include "core/fxcrt/fx_string.h"
#include "xfa/fxfa/fm2js/xfa_program.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
Expand Down
2 changes: 1 addition & 1 deletion testing/libfuzzer/pdf_hint_table_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include <cstdint>

#include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
#include "core/fpdfapi/fpdf_parser/cpdf_hint_tables.h"
#include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"

struct DummyLinearizedDictionary {
int end_of_first_page_offset;
Expand Down
2 changes: 1 addition & 1 deletion testing/libfuzzer/pdf_jpx_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <vector>

#include "core/fxcodec/codec/codec_int.h"
#include "core/fxge/include/fx_dib.h"
#include "core/fxge/fx_dib.h"

CCodec_JpxModule g_module;

Expand Down
5 changes: 2 additions & 3 deletions testing/libfuzzer/pdf_streamparser_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "core/fpdfapi/fpdf_page/pageint.h"

#include <cstdint>

#include "core/fpdfapi/fpdf_parser/include/cpdf_object.h"
#include "core/fpdfapi/fpdf_page/pageint.h"
#include "core/fpdfapi/fpdf_parser/cpdf_object.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
CPDF_StreamParser parser(data, size);
Expand Down
4 changes: 2 additions & 2 deletions testing/libfuzzer/pdf_xml_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <limits>
#include <memory>

#include "core/fxcrt/include/fx_basic.h"
#include "core/fxcrt/include/fx_system.h"
#include "core/fxcrt/fx_basic.h"
#include "core/fxcrt/fx_system.h"
#include "xfa/fde/xml/fde_xml_imp.h"
#include "xfa/fxfa/parser/cxfa_xml_parser.h"
#include "xfa/fxfa/parser/cxfa_widetextread.h"
Expand Down
4 changes: 2 additions & 2 deletions testing/libfuzzer/xfa_codec_fuzzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <memory>

#include "core/fxcodec/codec/include/ccodec_progressivedecoder.h"
#include "core/fxcodec/include/fx_codec.h"
#include "core/fxcodec/codec/ccodec_progressivedecoder.h"
#include "core/fxcodec/fx_codec.h"
#include "core/fxcrt/fx_stream.h"

class XFACodecFuzzer {
Expand Down

0 comments on commit 43c8a6a

Please sign in to comment.