Searched refs:buf2 (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/test/ |
D | test-compress.c | 157 _cleanup_free_ void *buf2 = NULL; in test_decompress_startswith_short() local 159 assert_se(buf2 = malloc(i)); in test_decompress_startswith_short() 161 assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, TEXT[i]) == 1); in test_decompress_startswith_short() 162 assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, 'y') == 0); in test_decompress_startswith_short() 234 char buf[20000], buf2[100]; in test_lz4_decompress_partial() local 261 for (size_t size = 1; size < sizeof(buf2); size++) { in test_lz4_decompress_partial() 263 r = LZ4_decompress_safe_partial(buf, buf2, compressed, size, size); in test_lz4_decompress_partial() 268 assert_se(memcmp(buf2, huge, r) == 0); in test_lz4_decompress_partial()
|
D | test-copy.c | 194 char buf[1024], buf2[1024]; in TEST() local 210 r2 = read(infd, buf2, sizeof(buf2)); in TEST() 213 assert_se(strneq(buf, buf2, r)); in TEST() 231 struct stat buf, buf2, buf3; in test_copy_bytes_regular_file_one() local 251 assert_se(fstat(fd2, &buf2) == 0); in test_copy_bytes_regular_file_one() 252 assert_se((uint64_t) buf2.st_size == MIN((uint64_t) buf.st_size, max_bytes)); in test_copy_bytes_regular_file_one() 274 assert_se(buf3.st_size == buf2.st_size); in test_copy_bytes_regular_file_one()
|
D | test-compress-benchmark.c | 82 _cleanup_free_ void *buf2 = NULL; in test_compress_decompress() local 118 r = decompress(buf, j, &buf2, &k, 0); in test_compress_decompress() 122 assert_se(memcmp(text, buf2, size) == 0); in test_compress_decompress()
|
D | test-fileio.c | 458 _cleanup_free_ char *buf = NULL, *buf2 = NULL; in TEST() local 465 assert_se(buf2 = strjoin(buf, "\n")); in TEST() 469 r = write_string_file("/proc/version", buf2, 0); in TEST() 473 … assert_se(write_string_file("/proc/version", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0); in TEST() 477 …assert_se(write_string_file("/proc/version", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRIN… in TEST()
|
/systemd-251/src/fuzz/ |
D | fuzz-compress.c | 21 _cleanup_free_ void *buf = NULL, *buf2 = NULL; in LLVMFuzzerTestOneInput() local 57 buf2 = malloc(sw_alloc); in LLVMFuzzerTestOneInput() 65 r = decompress_startswith(alg, buf, csize, &buf2, h->data, sw_len, h->data[sw_len]); in LLVMFuzzerTestOneInput()
|
/systemd-251/src/shared/ |
D | socket-netlink.c | 255 _cleanup_free_ char *buf1 = NULL, *buf2 = NULL, *name = NULL; in in_addr_port_ifindex_name_from_string_auto() local 307 s = buf2 = strndup(s, m - s); in in_addr_port_ifindex_name_from_string_auto() 308 if (!buf2) in in_addr_port_ifindex_name_from_string_auto()
|
/systemd-251/src/basic/ |
D | fs-util.c | 870 uint8_t buf2[sizeof(buf1)]; in conservative_renameat() local 880 l2 = read(new_fd, buf2, l1); in conservative_renameat() 888 assert((size_t) (l1 + 1) <= sizeof(buf2)); in conservative_renameat() 889 l2 = read(new_fd, buf2, l1 + 1); in conservative_renameat() 894 if (memcmp(buf1, buf2, l1) != 0) in conservative_renameat()
|