/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/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/iproute2/ip/ |
D | tunnel.c | 74 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_get_ioctl() 99 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_add_ioctl() 101 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_add_ioctl() 125 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_del_ioctl() 127 strncpy(ifr.ifr_name, basedev, IFNAMSIZ); in tnl_del_ioctl() 152 strncpy(ifr.ifr_name, name, IFNAMSIZ); in tnl_gen_ioctl()
|
/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 | 38 strncpy(ncache, pe->p_name, 16); in inet_proto_n2a() 39 strncpy(buf, pe->p_name, len); in inet_proto_n2a() 65 strncpy(ncache, pe->p_name, 16); in inet_proto_a2n()
|
/external/curl/lib/ |
D | strerror.c | 605 strncpy (buf, p, len); in get_winsock_error() 649 strncpy(buf, strerror(err), max); in Curl_strerror() 680 strncpy(buf, msg, max); in Curl_strerror() 692 strncpy(buf, buffer, max); in Curl_strerror() 700 strncpy(buf, msg, max); in Curl_strerror() 792 strncpy(buf, str, max); in Curl_idn_strerror() 1069 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror() 1115 strncpy(outbuf, str, outmax); in Curl_sspi_strerror() 1128 strncpy(outbuf, txt, outmax); in Curl_sspi_strerror()
|
/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/src/ |
D | netsh.c | 379 strncpy(temp,family_string,10); in parse_address_family() 419 strncpy(temp,socket_string,10); in parse_socket_type() 496 strncpy(temp,protocol_string,10); in parse_protocol() 704 strncpy(local_fill_file,arg1,sizeof(local_fill_file)); in scan_cmd_line() 716 strncpy(remote_fill_file,arg2,sizeof(remote_fill_file)); in scan_cmd_line() 843 strncpy(test_name,optarg,sizeof(test_name)-1); in scan_cmd_line() 917 strncpy(passphrase, in scan_cmd_line() 944 strncpy(test_port,arg1,PORTBUFSIZE); in scan_cmd_line() 946 strncpy(local_test_port,arg2,PORTBUFSIZE); in scan_cmd_line() 954 strncpy(host_name,arg1,sizeof(host_name)); in scan_cmd_line() [all …]
|
/external/webrtc/webrtc/tools/ |
D | simple_command_line_parser_unittest.cc | 28 strncpy(test_flags_[0], "tools_unittest", flag_size); in SetUp() 29 strncpy(test_flags_[1], "--foo", flag_size); in SetUp() 30 strncpy(test_flags_[2], "--bar=1", flag_size); in SetUp()
|
/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 | 242 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 259 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 289 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces() 328 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
|
D | fad-glifc.c | 208 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 225 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 252 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces() 287 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
|
/external/webrtc/webrtc/modules/audio_device/dummy/ |
D | file_audio_device_factory.cc | 41 strncpy(_inputAudioFilename, inputAudioFilename, MAX_FILENAME_LEN); in SetFilenamesToUse() 42 strncpy(_outputAudioFilename, outputAudioFilename, MAX_FILENAME_LEN); in SetFilenamesToUse()
|
/external/autotest/client/deps/fakemodem/src/ |
D | fakenet.c | 43 strncpy (ifr.ifr_name, dev, IFNAMSIZ); in tun_alloc() 50 strncpy (dev, ifr.ifr_name, IFNAMSIZ); in tun_alloc()
|
/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/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/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/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/iproute2/tc/ |
D | tc_qdisc.c | 77 strncpy(d, *argv, sizeof(d)-1); in tc_qdisc_modify() 98 strncpy(k, "clsact", sizeof(k) - 1); in tc_qdisc_modify() 109 strncpy(k, "ingress", sizeof(k) - 1); in tc_qdisc_modify() 132 strncpy(k, *argv, sizeof(k)-1); in tc_qdisc_modify() 298 strncpy(d, *argv, sizeof(d)-1); in tc_qdisc_list()
|
/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/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()
|