Home
last modified time | relevance | path

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

12

/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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dmempcpy.ll4 ; (1) mempcpy is lowered as memcpy, and
8 ; variable G before the mempcpy call. This instance of DST+N causes the repeat
9 ; DST+N done in the context of the return value of mempcpy to be redundant, and
14 ; Also see mempcpy-32.ll
26 %call = tail call i8* @mempcpy(i8* %DST, i8* %SRC, i64 %N)
30 declare i8* @mempcpy(i8*, i8*, i64)
Dmempcpy-32.ll3 ; This tests the i686 lowering of mempcpy.
4 ; Also see mempcpy.ll
16 %call = tail call i8* @mempcpy(i8* %DST, i8* %SRC, i32 %N)
20 declare i8* @mempcpy(i8*, i8*, i32)
/external/elfutils/libdw/
Ddwarf_getalt.c66 char *c = mempcpy (path, dir, dirlen); in __libdw_filepath()
69 mempcpy (c, file, filelen + 1); in __libdw_filepath()
83 char *c = mempcpy (path, debugdir, debugdirlen); in __libdw_filepath()
86 c = mempcpy (c, dir, dirlen); in __libdw_filepath()
90 mempcpy (c, file, filelen + 1); in __libdw_filepath()
/external/elfutils/libebl/
Deblmachineflagname.c74 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0'; in ebl_machine_flag_name()
78 cp = mempcpy (cp, machstr, machstrlen); in ebl_machine_flag_name()
Deblopenbackend.c351 strcpy (mempcpy (symname, machines[cnt].prefix, in openbackend()
/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.c196 *((char *) mempcpy (stpcpy (mempcpy (new_fname, rootdir, rootdir_len), in process_file()
368 strcpy (mempcpy (stpcpy (mempcpy (mempcpy (difname, rootdir, in process_file()
Dsize.c351 cp = mempcpy (cp, prefix, prefix_len); in handle_ar()
638 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
Dobjdump.c768 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
769 cp = mempcpy (cp, fname, fname_len); in handle_elf()
Dar.c624 *((char *) mempcpy (truncfname, arhdr->ar_name, in do_oper_extract()
713 *((char *) mempcpy (truncfname, arhdr->ar_name, in do_oper_extract()
1462 char *p = mempcpy (arhdr.ar_name, all->name, namelen); in do_oper_insert()
Dnm.c1536 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
1537 cp = mempcpy (cp, fname, fname_len); in handle_elf()
/external/elfutils/lib/
Dxstrndup.c44 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0'; in xstrndup()
Dsystem.h68 #define mempcpy(dest, src, n) \ macro
/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/elfutils/libdwfl/
Ddwfl_build_id_find_elf.c95 memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name); in __libdwfl_open_by_build_id()
Dlinux-kernel-modules.c722 char *a = mempcpy (alternate_name, module_name, n - module_name); in INTDEF()
728 a = mempcpy (a, n, p - n); in INTDEF()
/external/clang/INPUTS/
Dstpcpy-test.c8 #define mempcpy(dest, src, n) __mempcpy (dest, src, n) macro
/external/elfutils/libelf/
Delf_begin.c746 *((char *) mempcpy (buf, hdr->ar_size, sizeof (hdr->ar_size))) = '\0'; in read_long_names()
869 *((char *) mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0'; in __libelf_next_arhdr_wrlock()
965 *((char *) mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD))) \ in __libelf_next_arhdr_wrlock()
/external/elfutils/libdwelf/
Ddwelf_strtab.c301 *freep = (char *) mempcpy (*freep, nodep->string, nodep->len); in copystrings()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InferFunctionAttrs/
Dno-proto.ll609 ; CHECK: declare void @mempcpy(...)
610 declare void @mempcpy(...)

12