Lines Matching refs:byte_count

2368 	size_t  byte_count;  in exif_ifd_make_value()  local
2374 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2375 value_ptr = safe_emalloc(max(byte_count, 4), 1, 0); in exif_ifd_make_value()
2381 || (byte_count>1 && (info_data->format == TAG_FMT_BYTE || info_data->format == TAG_FMT_SBYTE)) in exif_ifd_make_value()
2383 memmove(value_ptr, info_data->value.s, byte_count); in exif_ifd_make_value()
2447 int i, byte_count; in exif_thumbnail_build() local
2475 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2476 if (byte_count > 4) { in exif_thumbnail_build()
2477 new_size += byte_count; in exif_thumbnail_build()
2496 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2498 …fo_data->format!=TAG_FMT_STRING?"ARRAY OF ":"", exif_get_tagformat(info_data->format), byte_count); in exif_thumbnail_build()
2510 if (byte_count <= 4) { in exif_thumbnail_build()
2515 …ageInfo, E_NOTICE, "Thumbnail: writing with value offset: 0x%04X + 0x%02X", new_value, byte_count); in exif_thumbnail_build()
2517 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2518 new_value += byte_count; in exif_thumbnail_build()
2566 static int exif_process_undefined(char **result, char *value, size_t byte_count) { in exif_process_undefined() argument
2572 if (byte_count) { in exif_process_undefined()
2573 (*result) = estrndup(value, byte_count); /* NULL @ byte_count!!! */ in exif_process_undefined()
2574 return byte_count+1; in exif_process_undefined()
2582 static int exif_process_string_raw(char **result, char *value, size_t byte_count) { in exif_process_string_raw() argument
2587 if (byte_count) { in exif_process_string_raw()
2588 (*result) = safe_emalloc(byte_count, 1, 1); in exif_process_string_raw()
2589 memcpy(*result, value, byte_count); in exif_process_string_raw()
2590 (*result)[byte_count] = '\0'; in exif_process_string_raw()
2591 return byte_count+1; in exif_process_string_raw()
2600 static int exif_process_string(char **result, char *value, size_t byte_count) { in exif_process_string() argument
2608 if ((byte_count=php_strnlen(value, byte_count)) > 0) { in exif_process_string()
2609 return exif_process_undefined(result, value, byte_count); in exif_process_string()
2612 return byte_count+1; in exif_process_string()
2845 size_t byte_count, offset_val, fpos, fgot; in exif_process_IFD_TAG() local
2883 byte_count = (size_t)byte_count_signed; in exif_process_IFD_TAG()
2885 if (byte_count > 4) { in exif_process_IFD_TAG()
2894 …if (byte_count > IFDlength || offset_val > IFDlength-byte_count || value_ptr < dir_entry || offset… in exif_process_IFD_TAG()
2898 …if (byte_count > ImageInfo->FileSize || offset_val>ImageInfo->FileSize-byte_count || (ImageInfo->F… in exif_process_IFD_TAG()
2906 …exif_get_tagname(tag, tagname, -12, tag_table), offset_val, byte_count, offset_val+byte_count, IFD… in exif_process_IFD_TAG()
2910 if (byte_count>sizeof(cbuf)) { in exif_process_IFD_TAG()
2912 value_ptr = safe_emalloc(byte_count, 1, 0); in exif_process_IFD_TAG()
2932 fgot = php_stream_read(ImageInfo->infile, value_ptr, byte_count); in exif_process_IFD_TAG()
2934 if (fgot<byte_count) { in exif_process_IFD_TAG()
2949 …_tagname(tag, tagname, -12, tag_table), offset_val+displacement, byte_count, byte_count, (componen… in exif_process_IFD_TAG()
2997 if (byte_count>1 && (length=php_strnlen(value_ptr, byte_count)) > 0) { in exif_process_IFD_TAG()
2998 if (length<byte_count-1) { in exif_process_IFD_TAG()
3001 ImageInfo->CopyrightEditor = estrndup(value_ptr+length+1, byte_count-length-1); in exif_process_IFD_TAG()
3007 ImageInfo->Copyright = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG()
3013 …nt(ImageInfo, &(ImageInfo->UserComment), &(ImageInfo->UserCommentEncoding), value_ptr, byte_count); in exif_process_IFD_TAG()
3025 …ImageInfo, &(ImageInfo->xp_fields.list[ImageInfo->xp_fields.count-1]), tag, value_ptr, byte_count); in exif_process_IFD_TAG()
3098 ImageInfo->make = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG()
3101 ImageInfo->model = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG()
3105 …if (!exif_process_IFD_in_MAKERNOTE(ImageInfo, value_ptr, byte_count, offset_base, IFDlength, displ… in exif_process_IFD_TAG()
3154 …tagname(tag, tagname, sizeof(tagname), tag_table), tag, format, components, value_ptr, byte_count); in exif_process_IFD_TAG()