/external/llvm/test/Transforms/InstCombine/ |
D | strncpy-1.ll | 1 ; Test that the strncpy library call simplifier works correctly. 13 declare i8* @strncpy(i8*, i8*, i32) 16 ; Check a bunch of strncpy invocations together. 20 ; CHECK-NOT: call i8* @strncpy 27 %rslt1 = call i8* @strncpy(i8* %arg1, i8* %arg2, i32 6) 30 %rslt2 = call i8* @strncpy(i8* %rslt1, i8* %arg3, i32 42) 33 %rslt3 = call i8* @strncpy(i8* %rslt2, i8* %arg4, i32 42) 39 ; Check strncpy(x, "", y) -> memset(x, '\0', y, 1). 46 call i8* @strncpy(i8* %dst, i8* %src, i32 32) 51 ; Check strncpy(x, y, 0) -> x. [all …]
|
D | strncpy-2.ll | 1 ; Test that the strncpy library call simplifier works correctly. 10 declare i16* @strncpy(i8*, i8*, i32) 12 ; Check that 'strncpy' functions with the wrong prototype aren't simplified. 19 call i16* @strncpy(i8* %dst, i8* %src, i32 6) 20 ; CHECK: call i16* @strncpy
|
/external/valgrind/memcheck/tests/ |
D | overlap.c | 44 strncpy(x+20, x, 20); // ok in main() 45 strncpy(x+20, x, 21); // overlap in main() 46 strncpy(x, x+20, 20); // ok in main() 47 strncpy(x, x+20, 21); // overlap in main() 74 strncpy(b, a, 25); in main() 78 strncpy(b, a, 26); in main() 82 strncpy(b, a, 27); in main() 121 strncpy( dest, src, 20 ); in main()
|
D | overlap.stderr.exp | 9 Source and destination overlap in strncpy(0x........, 0x........, 21) 10 at 0x........: strncpy (vg_replace_strmem.c:...) 13 Source and destination overlap in strncpy(0x........, 0x........, 21) 14 at 0x........: strncpy (vg_replace_strmem.c:...)
|
/external/libexif/libexif/olympus/ |
D | mnote-olympus-entry.c | 388 strncpy (v, _("No manual focus selection"), maxlen); in mnote_olympus_entry_get_value() 417 case 0: strncpy (v, _("AF position: center"), maxlen); break; in mnote_olympus_entry_get_value() 418 case 1: strncpy (v, _("AF position: top"), maxlen); break; in mnote_olympus_entry_get_value() 419 case 2: strncpy (v, _("AF position: bottom"), maxlen); break; in mnote_olympus_entry_get_value() 420 case 3: strncpy (v, _("AF position: left"), maxlen); break; in mnote_olympus_entry_get_value() 421 case 4: strncpy (v, _("AF position: right"), maxlen); break; in mnote_olympus_entry_get_value() 422 case 5: strncpy (v, _("AF position: upper-left"), maxlen); break; in mnote_olympus_entry_get_value() 423 case 6: strncpy (v, _("AF position: upper-right"), maxlen); break; in mnote_olympus_entry_get_value() 424 case 7: strncpy (v, _("AF position: lower-left"), maxlen); break; in mnote_olympus_entry_get_value() 425 case 8: strncpy (v, _("AF position: lower-right"), maxlen); break; in mnote_olympus_entry_get_value() [all …]
|
/external/iproute2/ip/ |
D | tunnel.c | 72 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl() 91 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl() 93 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl() 111 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl() 113 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl() 132 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 150 strncpy(to, from, 0); in TEST() 151 strncpy(to - 1, from - 1, 0); in TEST() 153 strncpy(to, from, from_size); in TEST() 154 strncpy(to, from, to_size); in TEST() 155 strncpy(to, from + from_size - 1, to_size); in TEST() 156 strncpy(to + to_size - 1, from, 1); in TEST() 158 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST() 160 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)), in TEST() 162 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)), in TEST() 164 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST() [all …]
|
/external/clang/test/Analysis/ |
D | string.c | 451 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro 455 #define strncpy BUILTIN(strncpy) macro 456 char *strncpy(char *restrict s1, const char *restrict s2, size_t n); 462 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_dst() 466 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_src() 470 …strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn() 476 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects() 484 …strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_overflow() 490 …strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow() 499 …strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow2() [all …]
|
/external/iproute2/lib/ |
D | inet_proto.c | 37 strncpy(ncache, pe->p_name, 16); in inet_proto_n2a() 38 strncpy(buf, pe->p_name, len); in inet_proto_n2a() 64 strncpy(ncache, pe->p_name, 16); in inet_proto_a2n()
|
/external/linux-tools-perf/src/tools/perf/arch/x86/util/ |
D | header.c | 31 strncpy(&vendor[0], (char *)(&b), 4); in get_cpuid() 32 strncpy(&vendor[4], (char *)(&d), 4); in get_cpuid() 33 strncpy(&vendor[8], (char *)(&c), 4); in get_cpuid()
|
/external/ipsec-tools/src/racoon/ |
D | var.h | 82 strncpy((y), "(invalid)", sizeof(y)); \ 84 strncpy((z), "(invalid)", sizeof(z)); \ 93 strncpy((y), "(invalid)", sizeof(y)); \
|
/external/netperf/ |
D | netserver.c | 827 strncpy(local_host_name,"0.0.0.0",sizeof(local_host_name)); in main() 829 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main() 845 strncpy(local_host_name,arg1,sizeof(local_host_name)); in main() 855 strncpy(local_host_name,"::0",sizeof(local_host_name)); in main() 875 strncpy(listen_port,optarg,sizeof(listen_port)); in main() 884 strncpy(local_host_name,"::0",sizeof(local_host_name)); in main() 987 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main() 996 strncpy(listen_port,TEST_PORT,sizeof(listen_port)); in main()
|
D | netsh.c | 355 strncpy(temp,family_string,10); in parse_address_family() 394 strncpy(test_port,"12865",PORTBUFSIZE); /* where is the test waiting */ in set_defaults() 395 strncpy(local_test_port,"0",PORTBUFSIZE);/* INPORT_ANY as it were */ in set_defaults() 711 strncpy(test_port,arg1,PORTBUFSIZE); in scan_cmd_line() 713 strncpy(local_test_port,arg2,PORTBUFSIZE); in scan_cmd_line() 721 strncpy(host_name,arg1,sizeof(host_name)); in scan_cmd_line() 731 strncpy(local_host_name,arg1,sizeof(local_host_name)); in scan_cmd_line()
|
/external/jhead/ |
D | gpsinfo.c | 230 strncpy(ImageInfo.GpsLat+2, TempString, 29); in ProcessGpsInfo() 232 strncpy(ImageInfo.GpsLong+2, TempString, 29); in ProcessGpsInfo() 240 strncpy(ImageInfo.GpsLatRaw, TempString, MAX_BUF_SIZE); in ProcessGpsInfo() 242 strncpy(ImageInfo.GpsLongRaw, TempString, MAX_BUF_SIZE); in ProcessGpsInfo() 268 strncpy(ImageInfo.GpsDateStamp, (char*)ValuePtr, sizeof(ImageInfo.GpsDateStamp)); in ProcessGpsInfo()
|
/external/libpcap/ |
D | fad-gifc.c | 248 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 267 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 297 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 336 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
|
D | fad-glifc.c | 214 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 233 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 260 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 295 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
|
D | pcap-linux.c | 874 strncpy(ifr.ifr_name, handlep->mondevice, sizeof(ifr.ifr_name)); 976 strncpy(ireq.ifr_ifrn.ifrn_name, handle->opt.source, 1100 strncpy(ifr.ifr_name, handlep->device, 1164 strncpy(ifr.ifr_name, handlep->device, 1178 strncpy(ireq.ifr_ifrn.ifrn_name, handlep->device, 2127 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); 2274 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); 2374 strncpy(handle->errbuf, "setfilter: No filter specified", 3333 strncpy(ebuf, 4653 strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name)); [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 136 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 155 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 169 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface()
|
/external/libselinux/src/ |
D | canonicalize_context.c | 36 strncpy(buf, con, size); in security_canonicalize_context() 47 strncpy(buf, con, size); in security_canonicalize_context()
|
/external/ppp/pppd/plugins/radius/ |
D | avpair.c | 79 strncpy (vp->strvalue, (char *) pval, AUTH_STRING_LEN); in rc_avpair_assign() 124 strncpy (vp->name, pda->name, sizeof (vp->name)); in rc_avpair_new() 706 strncpy(name, pair->name, (size_t) ln); in rc_avpair_tostr() 736 strncpy(value, dval->name, (size_t) lv-1); in rc_avpair_tostr() 741 strncpy(value, buffer, (size_t) lv); in rc_avpair_tostr() 747 strncpy (value, inet_ntoa (inad), (size_t) lv-1); in rc_avpair_tostr() 753 strncpy(value, buffer, lv-1); in rc_avpair_tostr()
|
/external/e2fsprogs/ext2ed/ |
D | dir_com.c | 228 strncpy (full_dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___cd() 246 strncpy (dir_name,full_dir_name,ptr-full_dir_name); in type_dir___cd() 461 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); /* The name is not terminated */ in action_show() 610 strncpy (variable,buffer,ptr-buffer);variable [ptr-buffer]=0; in type_dir___set() 640 strncpy (dir_entry_ptr->name,value,strlen (value)); in type_dir___set() 647 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___set()
|
/external/selinux/libselinux/src/ |
D | canonicalize_context.c | 36 strncpy(buf, con, size); in security_canonicalize_context_raw() 47 strncpy(buf, con, size); in security_canonicalize_context_raw()
|
/external/llvm/test/Transforms/DeadStoreElimination/ |
D | libcalls.ll | 14 declare i8* @strncpy(i8* %dest, i8* %src, i32 %n) nounwind 19 ; CHECK-NOT: @strncpy 20 %call = call i8* @strncpy(i8* %dest, i8* %src, i32 12)
|
/external/skia/tools/ |
D | win_dbghelp.cpp | 49 strncpy(dest, srcOrEmptyString, len); in strncpyOrSetBlank() 222 strncpy(app_name, vargs0 + pos_last_slash + 1, pos_period - pos_last_slash - 1); in setUpDebuggingFromArgs() 227 strncpy(binaries_path, vargs0, pos_last_slash); in setUpDebuggingFromArgs()
|
/external/e2fsprogs/lib/ext2fs/ |
D | ismounted.c | 147 strncpy(mtpt, "/", mtlen); in check_mntent_file() 189 strncpy(mtpt, mnt->mnt_dir, mtlen); in check_mntent_file() 277 strncpy(mtpt, mp->f_mntonname, mtlen); in check_getmntinfo() 356 strncpy(mtpt, "<swap>", mtlen); in ext2fs_check_mount_point()
|