• Home
  • Raw
  • Download

Lines Matching refs:prefix_size

339     png_size_t prefix_size, png_size_t *newlength)  in png_decompress_chunk()  argument
342 if (prefix_size > chunklength) in png_decompress_chunk()
346 prefix_size = 0; /* To delete everything */ in png_decompress_chunk()
352 (png_bytep)(png_ptr->chunkdata + prefix_size), in png_decompress_chunk()
353 chunklength - prefix_size, in png_decompress_chunk()
361 (prefix_size + expanded_size >= png_ptr->user_chunk_malloc_max - 1)) in png_decompress_chunk()
365 prefix_size + expanded_size >= PNG_USER_CHUNK_MALLOC_MAX - 1) in png_decompress_chunk()
386 if (prefix_size + expanded_size > prefix_size && in png_decompress_chunk()
387 prefix_size + expanded_size < 0xffffffffU) in png_decompress_chunk()
389 text = png_malloc_warn(png_ptr, prefix_size + expanded_size + 1); in png_decompress_chunk()
394 png_memcpy(text, png_ptr->chunkdata, prefix_size); in png_decompress_chunk()
396 (png_bytep)(png_ptr->chunkdata + prefix_size), in png_decompress_chunk()
397 chunklength - prefix_size, in png_decompress_chunk()
398 (png_bytep)(text + prefix_size), expanded_size); in png_decompress_chunk()
399 text[prefix_size + expanded_size] = 0; /* just in case */ in png_decompress_chunk()
405 *newlength = prefix_size + expanded_size; in png_decompress_chunk()
437 png_charp text = png_malloc_warn(png_ptr, prefix_size + 1); in png_decompress_chunk()
440 if (prefix_size > 0) in png_decompress_chunk()
441 png_memcpy(text, png_ptr->chunkdata, prefix_size); in png_decompress_chunk()
446 *(png_ptr->chunkdata + prefix_size) = 0x00; in png_decompress_chunk()
451 *newlength = prefix_size; in png_decompress_chunk()