Home
last modified time | relevance | path

Searched refs:mempcpy (Results 1 – 25 of 55) sorted by relevance

123

/external/clang/test/Analysis/
Dbstring.c161 #define mempcpy(a,b,c) __mempcpy_chk(a,b,c,(size_t)-1) macro
165 #define mempcpy BUILTIN(mempcpy) macro
166 void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);
175 mempcpy(dst, src, 4); // no-warning in mempcpy0()
177 clang_analyzer_eval(mempcpy(dst, src, 4) == &dst[4]); // expected-warning{{TRUE}} in mempcpy0()
188mempcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array elemen… in mempcpy1()
195 mempcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}} in mempcpy2()
202 mempcpy(dst+1, src+2, 2); // no-warning in mempcpy3()
209mempcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array el… in mempcpy4()
216 mempcpy(dst+2, src+2, 2); // expected-warning{{Memory copy function overflows destination buffer}} in mempcpy5()
[all …]
/external/syslinux/com32/lib/
Dmempcpy.S36 .globl mempcpy symbol
37 .type mempcpy, @function
38 mempcpy: label
89 .size mempcpy, .-mempcpy
Dmempcpy.c10 void *mempcpy(void *dst, const void *src, size_t n) in mempcpy() function
/external/elfutils/libebl/
Deblmachineflagname.c73 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0'; in ebl_machine_flag_name()
77 cp = mempcpy (cp, machstr, machstrlen); in ebl_machine_flag_name()
Deblstrtab.c299 *freep = (char *) mempcpy (*freep, nodep->string, nodep->len); in copystrings()
/external/e2fsprogs/intl/
Dlocalealias.c79 # ifndef mempcpy
80 # define mempcpy __mempcpy macro
226 mempcpy (mempcpy (full_fname, fname, fname_len), in read_alias_file()
Ddcigettext.c162 static void *mempcpy (void *dest, const void *src, size_t n);
570 stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), in DCIGETTEXT()
657 mempcpy (newp->msgid, msgid1, msgid_len); in DCIGETTEXT()
1182 mempcpy (void *dest, const void *src, size_t n) in mempcpy() function
/external/toybox/toys/pending/
Darping.c49 extern void *mempcpy(void *dest, const void *src, size_t n);
111 ptr = mempcpy(ptr, &src_pk.sll_addr, src_pk.sll_halen); in send_packet()
112 ptr = mempcpy(ptr, &src_addr, 4); in send_packet()
113 ptr = mempcpy(ptr, in send_packet()
116 ptr = mempcpy(ptr, &dest_addr, 4); in send_packet()
/external/elfutils/src/
Dfindtextrel.c212 *((char *) mempcpy (stpcpy (mempcpy (new_fname, rootdir, rootdir_len), in process_file()
383 strcpy (mempcpy (stpcpy (mempcpy (mempcpy (difname, rootdir, in process_file()
Dsize.c368 cp = mempcpy (cp, prefix, prefix_len); in handle_ar()
653 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
Dobjdump.c780 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
781 cp = mempcpy (cp, fname, fname_len); in handle_elf()
/external/elfutils/lib/
Dxstrndup.c43 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0'; in xstrndup()
/external/valgrind/
Dglibc-2.34567-NPTL-helgrind.supp28 # FILE*s state through mempcpy, which we intercept, so we also need
48 helgrind-glibc-io-xsputn-mempcpy
262 fun:mempcpy
/external/elfutils/libasm/
Ddisasm_str.c54 buffer->buf = mempcpy (buffer->buf, str, len); in buffer_cb()
Dasm_begin.c152 result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len), in asm_begin()
/external/autotest/client/site_tests/platform_ToolchainTests/src/
Dclang-fortify-tests.cpp111 #undef mempcpy
125 EXPECT_DEATH(mempcpy(small_buffer, large_buffer, sizeof(large_buffer))); in TestString()
163 EXPECT_NO_DEATH(mempcpy(split.tiny_buffer, &split, sizeof(split))); in TestString()
/external/syslinux/com32/include/
Dstring.h15 __extern void *mempcpy(void *, const void *, size_t);
/external/syslinux/memdisk/
Dmemdisk.h101 static inline void *mempcpy(void *__d, const void *__s, unsigned int __n) in mempcpy() function
Dsetup.c1133 dpp = mempcpy(dpp, memdisk_hook, bin_size); in setup()
1134 dpp = mempcpy(dpp, ranges, (nranges + 1) * sizeof(ranges[0])); in setup()
1135 dpp = mempcpy(dpp, shdr->cmdline, cmdline_len); in setup()
/external/valgrind/memcheck/tests/
Dstr_tester.c1072 check(mempcpy(one, "abc", 4) == one + 4, 1); /* Returned value. */ in test_mempcpy()
1076 (void) mempcpy(one+1, "xyz", 2); in test_mempcpy()
1080 (void) mempcpy(one, "xyz", 0); in test_mempcpy()
1085 (void) mempcpy(two, one, 9); in test_mempcpy()
1093 check (mempcpy (one + i, "hi there", 9) == one + i + 9, in test_mempcpy()
1098 check (mempcpy (two, one + i, 9) == two + 9, in test_mempcpy()
/external/elfutils/libdwfl/
Ddwfl_build_id_find_elf.c90 memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name); in __libdwfl_open_by_build_id()
Dlinux-kernel-modules.c677 char *a = mempcpy (alternate_name, module_name, n - module_name); in INTDEF()
683 a = mempcpy (a, n, p - n); in INTDEF()
/external/syslinux/com32/libutil/
Dsha256crypt.c404 cp = mempcpy(cp, temp_result, 32); in sha256_crypt_r()
420 cp = mempcpy(cp, temp_result, 32); in sha256_crypt_r()
Dsha512crypt.c439 cp = mempcpy(cp, temp_result, 64); in sha512_crypt_r()
455 cp = mempcpy(cp, temp_result, 64); in sha512_crypt_r()
/external/clang/INPUTS/
Dstpcpy-test.c8 #define mempcpy(dest, src, n) __mempcpy (dest, src, n) macro

123