From ccd5be05f61c85754daf5c8155f4932f6d35a55a Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 30 Aug 2017 13:23:44 -0400 Subject: Move CFX_BitStream to its own file This CL moves the CFX_BitStream code out of fx_basic and into cfx_bitstream. Bug: pdfium:867 Change-Id: I5b7e6190a7db1fe1d24feb6bd676035a5c73ee92 Reviewed-on: https://pdfium-review.googlesource.com/12350 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- testing/libfuzzer/pdf_hint_table_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing') diff --git a/testing/libfuzzer/pdf_hint_table_fuzzer.cc b/testing/libfuzzer/pdf_hint_table_fuzzer.cc index b31d56eb8f..ac4229a5a9 100644 --- a/testing/libfuzzer/pdf_hint_table_fuzzer.cc +++ b/testing/libfuzzer/pdf_hint_table_fuzzer.cc @@ -10,6 +10,7 @@ #include "core/fpdfapi/parser/cpdf_hint_tables.h" #include "core/fpdfapi/parser/cpdf_linearized_header.h" #include "core/fpdfapi/parser/cpdf_number.h" +#include "core/fxcrt/cfx_bitstream.h" #include "third_party/base/ptr_util.h" int32_t GetData(const int32_t** data32, const uint8_t** data, size_t* size) { @@ -35,8 +36,7 @@ class HintTableForFuzzing : public CPDF_HintTables { if (size < static_cast(shared_hint_table_offset_)) return; - CFX_BitStream bs; - bs.Init(data, size); + CFX_BitStream bs(data, size); if (!ReadPageHintTable(&bs)) return; ReadSharedObjHintTable(&bs, shared_hint_table_offset_); -- cgit v1.2.3