Home
last modified time | relevance | path

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

/external/pdfium/core/fxcodec/codec/
Dfx_codec_flate.cpp508 uint32_t guess_size = orig_size ? orig_size : src_size * 2; in FlateUncompress() local
512 if (guess_size > kMaxInitialAllocSize) { in FlateUncompress()
513 guess_size = kMaxInitialAllocSize; in FlateUncompress()
516 uint32_t buf_size = guess_size; in FlateUncompress()
526 FX_Alloc(uint8_t, guess_size + 1)); in FlateUncompress()
527 guess_buf.get()[guess_size] = '\0'; in FlateUncompress()
542 uint32_t old_size = guess_size; in FlateUncompress()
543 guess_size += alloc_step; in FlateUncompress()
544 if (guess_size < old_size || guess_size + 1 < guess_size) { in FlateUncompress()
551 FX_Realloc(uint8_t, guess_buf.release(), guess_size + 1); in FlateUncompress()
[all …]