Home
last modified time | relevance | path

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

/external/libpng/contrib/oss-fuzz/
Dlibpng_read_fuzzer.cc80 static const int kPngHeaderSize = 8; variable
86 if (size < kPngHeaderSize) { in LLVMFuzzerTestOneInput()
91 if (png_sig_cmp(v.data(), 0, kPngHeaderSize)) { in LLVMFuzzerTestOneInput()
127 png_handler.buf_state->data = data + kPngHeaderSize; in LLVMFuzzerTestOneInput()
128 png_handler.buf_state->bytes_left = size - kPngHeaderSize; in LLVMFuzzerTestOneInput()
130 png_set_sig_bytes(png_handler.png_ptr, kPngHeaderSize); in LLVMFuzzerTestOneInput()
Dnewcc61 static const int kPngHeaderSize = 8;
68 if (size < kPngHeaderSize) {
73 if (png_sig_cmp(v.data(), 0, kPngHeaderSize)) {
132 png_handler.buf_state->data = data + kPngHeaderSize;
133 png_handler.buf_state->bytes_left = size - kPngHeaderSize;
135 png_set_sig_bytes(png_handler.png_ptr, kPngHeaderSize);