Home
last modified time | relevance | path

Searched refs:safe_size (Results 1 – 5 of 5) sorted by relevance

/external/pdfium/core/fpdfapi/parser/
Dcpdf_read_validator.cpp116 const FX_SAFE_SIZE_T safe_size = file_size_; in IsWholeFileAvailable() local
119 (safe_size.IsValid() ? IsDataRangeAvailable(0, safe_size.ValueOrDie()) in IsWholeFileAvailable()
159 const FX_SAFE_SIZE_T safe_size = file_size_; in CheckWholeFileAndRequestIfUnavailable() local
160 if (safe_size.IsValid()) in CheckWholeFileAndRequestIfUnavailable()
161 ScheduleDownload(0, safe_size.ValueOrDie()); in CheckWholeFileAndRequestIfUnavailable()
/external/pdfium/testing/fuzzers/
Dpdf_fm2js_fuzzer.cc14 FX_SAFE_SIZE_T safe_size = size; in LLVMFuzzerTestOneInput() local
15 if (!safe_size.IsValid()) in LLVMFuzzerTestOneInput()
20 WideString::FromUTF8(ByteStringView(data, safe_size.ValueOrDie())); in LLVMFuzzerTestOneInput()
Dpdf_xml_fuzzer.cc18 FX_SAFE_SIZE_T safe_size = size; in LLVMFuzzerTestOneInput() local
19 if (!safe_size.IsValid()) in LLVMFuzzerTestOneInput()
/external/pdfium/third_party/base/
Dstl_util.h94 pdfium::base::CheckedNumeric<size_t> safe_size = w; in Vector2D() local
95 safe_size *= h; in Vector2D()
96 return std::vector<T, A>(safe_size.ValueOrDie()); in Vector2D()
/external/pdfium/core/fxcodec/jpx/
Dcjpx_decoder.cpp167 FX_SAFE_UINT32 safe_size = yw; in sycc420_to_rgb() local
168 safe_size *= yh; in sycc420_to_rgb()
169 safe_size *= sizeof(int); in sycc420_to_rgb()
170 if (!safe_size.IsValid()) in sycc420_to_rgb()
179 Optional<OpjImageRgbData> data = alloc_rgb(safe_size.ValueOrDie()); in sycc420_to_rgb()