Home
last modified time | relevance | path

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

/external/oss-fuzz/projects/libpng-proto/
Dlibpng_transforms_fuzzer.cc51 const size_t kPngSignatureSize = 8; in LLVMFuzzerTestOneInput() local
64 if (size < kPngSignatureSize + kIHDRSize) return 0; in LLVMFuzzerTestOneInput()
65 if (png_sig_cmp(data, 0, kPngSignatureSize)) return 0; in LLVMFuzzerTestOneInput()
66 uint32_t width = __builtin_bswap32(Read32(data + kPngSignatureSize + 8)); in LLVMFuzzerTestOneInput()
67 uint32_t height = __builtin_bswap32(Read32(data + kPngSignatureSize + 12)); in LLVMFuzzerTestOneInput()