Home | History | Annotate | Download | only in libpng

Lines Matching refs:prefix_size

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