| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_set_format_ustar.c | 392 size_t copy_length; in __archive_write_format_header_ustar() local 410 r = archive_entry_pathname_l(entry, &pp, ©_length, sconv); in __archive_write_format_header_ustar() 435 if (copy_length <= USTAR_name_size) in __archive_write_format_header_ustar() 436 memcpy(h + USTAR_name_offset, pp, copy_length); in __archive_write_format_header_ustar() 439 p = strchr(pp + copy_length - USTAR_name_size - 1, '/'); in __archive_write_format_header_ustar() 472 pp + copy_length - p - 1); in __archive_write_format_header_ustar() 476 r = archive_entry_hardlink_l(entry, &p, ©_length, sconv); in __archive_write_format_header_ustar() 489 if (copy_length > 0) in __archive_write_format_header_ustar() 492 r = archive_entry_symlink_l(entry, &p, ©_length, sconv); in __archive_write_format_header_ustar() 506 if (copy_length > 0) { in __archive_write_format_header_ustar() [all …]
|
| H A D | archive_write_set_format_gnutar.c | 593 size_t copy_length; in archive_format_gnutar_header() local 615 copy_length = strlen(p); in archive_format_gnutar_header() 618 copy_length = gnutar->pathname_length; in archive_format_gnutar_header() 620 if (copy_length > GNUTAR_name_size) in archive_format_gnutar_header() 621 copy_length = GNUTAR_name_size; in archive_format_gnutar_header() 622 memcpy(h + GNUTAR_name_offset, p, copy_length); in archive_format_gnutar_header() 624 if ((copy_length = gnutar->linkname_length) > 0) { in archive_format_gnutar_header() 625 if (copy_length > GNUTAR_linkname_size) in archive_format_gnutar_header() 626 copy_length = GNUTAR_linkname_size; in archive_format_gnutar_header() 628 copy_length); in archive_format_gnutar_header() [all …]
|
| H A D | archive_write_set_format_v7tar.c | 369 size_t copy_length; in format_header_v7tar() local 387 r = archive_entry_pathname_l(entry, &pp, ©_length, sconv); in format_header_v7tar() 412 if (strict && copy_length < V7TAR_name_size) in format_header_v7tar() 413 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar() 414 else if (!strict && copy_length <= V7TAR_name_size) in format_header_v7tar() 415 memcpy(h + V7TAR_name_offset, pp, copy_length); in format_header_v7tar() 423 r = archive_entry_hardlink_l(entry, &p, ©_length, sconv); in format_header_v7tar() 436 if (copy_length > 0) in format_header_v7tar() 439 r = archive_entry_symlink_l(entry, &p, ©_length, sconv); in format_header_v7tar() 453 if (copy_length > 0) { 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<uptr>(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<uptr>(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 | 1023 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local 1024 duplicate_mappings = kmem_alloc(copy_length, KM_SLEEP); in vdev_indirect_mapping_duplicate_adjacent_entries() 1025 memcpy(duplicate_mappings, first_mapping, copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries()
|
| /freebsd/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 523 size_t copy_length = entries * sizeof (*first_mapping); in vdev_indirect_mapping_duplicate_adjacent_entries() local 524 duplicate_mappings = malloc(copy_length); in vdev_indirect_mapping_duplicate_adjacent_entries() 526 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 | 347 uptr copy_length = internal_strnlen(s, size); \ 348 char *new_mem = (char *)WRAP(malloc)(copy_length + 1); \ 350 COMMON_INTERCEPTOR_READ_STRING(ctx, s, Min<uptr>(size, copy_length + 1)); \ 353 COMMON_INTERCEPTOR_COPY_STRING(ctx, new_mem, s, copy_length); \ 354 internal_memcpy(new_mem, s, copy_length); \ 355 new_mem[copy_length] = '\0'; \
|