/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_ustar.c | 392 size_t copy_length; local 422 if (copy_length <= USTAR_name_size) 459 pp + copy_length - p - 1); 476 if (copy_length > 0) 493 if (copy_length > 0) { 498 copy_length = USTAR_linkname_size; 516 if (copy_length > 0) { 517 if (copy_length > USTAR_uname_size) { 523 copy_length = USTAR_uname_size; 541 if (copy_length > 0) { [all …]
|
H A D | archive_write_set_format_gnutar.c | 569 size_t copy_length; in archive_format_gnutar_header() local 591 copy_length = strlen(p); in archive_format_gnutar_header() 596 if (copy_length > GNUTAR_name_size) in archive_format_gnutar_header() 597 copy_length = GNUTAR_name_size; in archive_format_gnutar_header() 604 copy_length); in archive_format_gnutar_header() 610 copy_length = strlen(p); in archive_format_gnutar_header() 615 if (copy_length > 0) { in archive_format_gnutar_header() 617 copy_length = GNUTAR_uname_size; in archive_format_gnutar_header() 624 copy_length = strlen(p); in archive_format_gnutar_header() 629 if (copy_length > 0) { in archive_format_gnutar_header() [all …]
|
H A D | archive_write_set_format_v7tar.c | 365 size_t copy_length; in format_header_v7tar() local 395 if (strict && copy_length < V7TAR_name_size) in format_header_v7tar() 396 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar() 397 else if (!strict && copy_length <= V7TAR_name_size) in format_header_v7tar() 398 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar() 406 r = archive_entry_hardlink_l(entry, &p, ©_length, sconv); in format_header_v7tar() 419 if (copy_length > 0) in format_header_v7tar() 436 if (copy_length > 0) { in format_header_v7tar() 437 if (copy_length >= V7TAR_linkname_size) { in format_header_v7tar() 441 copy_length = V7TAR_linkname_size; in format_header_v7tar() [all …]
|
/freebsd/sys/dev/isci/scil/ |
H A D | scic_sds_stp_request.c | 1211 U32 copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1218 copy_length = MIN(length, current_sgl->length - sgl_offset); in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1220 memcpy(destination_address, source_address, copy_length); in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1222 length -= copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1223 sgl_offset += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1224 data_offset += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer() 1225 source_address += copy_length; in scic_sds_stp_request_pio_data_in_copy_data_buffer()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_interceptors.cpp | 538 uptr copy_length = Min(size, from_length + 1); local 539 ASAN_READ_RANGE(ctx, from, copy_length); 544 CHECK_RANGES_OVERLAP("strncat", to, to_length + copy_length + 1, 545 from, copy_length);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors.cpp | 193 uptr copy_length = Min(size, from_length + 1); in INTERCEPTOR() local 194 MEMPROF_READ_RANGE(from, copy_length); in INTERCEPTOR()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_indirect.c | 1022 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local 1023 duplicate_mappings = kmem_alloc(copy_length, KM_SLEEP); in vdev_indirect_mapping_duplicate_adjacent_entries() 1024 memcpy(duplicate_mappings, first_mapping, copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
|
/freebsd/stand/libsa/zfs/ |
H A D | zfsimpl.c | 526 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local 527 duplicate_mappings = malloc(copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries() 529 bcopy(first_mapping, duplicate_mappings, copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors.inc | 313 uptr copy_length = internal_strnlen(s, size); \ 314 char *new_mem = (char *)WRAP(malloc)(copy_length + 1); \ 316 COMMON_INTERCEPTOR_READ_STRING(ctx, s, Min(size, copy_length + 1)); \ 319 COMMON_INTERCEPTOR_COPY_STRING(ctx, new_mem, s, copy_length); \ 320 internal_memcpy(new_mem, s, copy_length); \ 321 new_mem[copy_length] = '\0'; \
|