Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 548) sorted by relevance

12345678910>>...22

/external/llvm/test/Transforms/InstCombine/
Dstrncpy-1.ll1 ; 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 …]
Dstrncpy-2.ll1 ; 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/main/memcheck/tests/
Doverlap.c44 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()
Doverlap.stderr.exp9 Source and destination overlap in strncpy(0x........, 0x........, 21)
10 at 0x........: strncpy (mc_replace_strmem.c:...)
13 Source and destination overlap in strncpy(0x........, 0x........, 21)
14 at 0x........: strncpy (mc_replace_strmem.c:...)
/external/libexif/libexif/olympus/
Dmnote-olympus-entry.c388 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/
Dtunnel.c72 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/chromium_org/third_party/libxslt/libxslt/
Dextra.c203 strncpy(digits, str+7, 4); in xsltFunctionLocalTime()
208 strncpy(digits, str+12, 2); in xsltFunctionLocalTime()
213 strncpy(digits, str+15, 2); in xsltFunctionLocalTime()
218 strncpy(digits, str+18, 2); in xsltFunctionLocalTime()
223 strncpy(digits, str+21, 2); in xsltFunctionLocalTime()
228 strncpy(digits, str+24, 2); in xsltFunctionLocalTime()
265 strncpy(result, str, 20); in xsltFunctionLocalTime()
267 strncpy(result+23, str+19, 5); in xsltFunctionLocalTime()
/external/libxslt/libxslt/
Dextra.c203 strncpy(digits, str+7, 4); in xsltFunctionLocalTime()
208 strncpy(digits, str+12, 2); in xsltFunctionLocalTime()
213 strncpy(digits, str+15, 2); in xsltFunctionLocalTime()
218 strncpy(digits, str+18, 2); in xsltFunctionLocalTime()
223 strncpy(digits, str+21, 2); in xsltFunctionLocalTime()
228 strncpy(digits, str+24, 2); in xsltFunctionLocalTime()
265 strncpy(result, str, 20); in xsltFunctionLocalTime()
267 strncpy(result+23, str+19, 5); in xsltFunctionLocalTime()
/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc134 strncpy(to, from, 0); in TEST()
135 strncpy(to - 1, from - 1, 0); in TEST()
137 strncpy(to, from, from_size); in TEST()
138 strncpy(to, from, to_size); in TEST()
139 strncpy(to, from + from_size - 1, to_size); in TEST()
140 strncpy(to + to_size - 1, from, 1); in TEST()
142 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
144 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)), in TEST()
146 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)), in TEST()
148 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST()
[all …]
/external/valgrind/main/coregrind/m_initimg/
Dinitimg-pathscan.c117 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); in match_executable()
123 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); in match_executable()
137 VG_(strncpy)( executable_name_out, exec, VKI_PATH_MAX-1 ); in ML_()
141 VG_(strncpy)( executable_name_in, exec, VKI_PATH_MAX-1 ); in ML_()
/external/iproute2/lib/
Dinet_proto.c37 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/clang/test/Analysis/
Dstring.c450 #define strncpy(a,b,n) __strncpy_chk(a,b,n,(size_t)-1) macro
454 #define strncpy BUILTIN(strncpy) macro
455 char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
461 strncpy(NULL, x, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_dst()
465 strncpy(x, NULL, 5); // expected-warning{{Null pointer argument in call to string copy function}} in strncpy_null_src()
469strncpy(x, (char*)&strcpy_fn, 5); // expected-warning{{Argument to string copy function is the add… in strncpy_fn()
475 clang_analyzer_eval(strncpy(x, y, 5) == x); // expected-warning{{TRUE}} in strncpy_effects()
483strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_overflow()
489strncpy(x, y, 5); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow()
498strncpy(x, y, n); // expected-warning{{Size argument is greater than the length of the destination… in strncpy_no_overflow2()
[all …]
/external/ipsec-tools/src/racoon/
Dvar.h82 strncpy((y), "(invalid)", sizeof(y)); \
84 strncpy((z), "(invalid)", sizeof(z)); \
93 strncpy((y), "(invalid)", sizeof(y)); \
/external/chromium/chrome/common/
Dchild_process_logging_linux.cc63 strncpy(g_gpu_driver_ver, in SetGpuInfo()
67 strncpy(g_gpu_ps_ver, in SetGpuInfo()
71 strncpy(g_gpu_vs_ver, in SetGpuInfo()
/external/srec/srec/EventLog/src/
Driff.c465 strncpy(chunk.tag, "swi ", 4); in readSwiChunk()
469 strncpy(list_chunk.tag, "segs", 4); in readSwiChunk()
495 strncpy(list_chunk.tag, "kvs ", 4); in readSwiChunk()
567 strncpy(parent.tag, "WAVE", 4); in riffReadWave2L16()
575 strncpy(chunk.tag, "fmt ", 4); in riffReadWave2L16()
600 strncpy(chunk.tag, "data", 4); in riffReadWave2L16()
696 strncpy(parent.tag, "WAVE", 4); in readRiff2Buf()
703 strncpy(chunk.tag, "fmt ", 4); in readRiff2Buf()
739 strncpy(chunk.tag, "data", 4); in readRiff2Buf()
888 strncpy(ck.ckString, "segs", 4); in writeSwiAudioChunk()
[all …]
/external/qemu/telephony/
Dsim_card.c45 strncpy( card->pin, "0000", sizeof(card->pin) ); in asimcard_create()
46 strncpy( card->puk, "12345678", sizeof(card->puk) ); in asimcard_create()
91 strncpy( sim->pin, pin, A_SIM_PIN_SIZE ); in asimcard_set_pin()
98 strncpy( sim->puk, puk, A_SIM_PUK_SIZE ); in asimcard_set_puk()
131 strncpy( sim->puk, puk, A_SIM_PUK_SIZE ); in asimcard_check_puk()
132 strncpy( sim->pin, pin, A_SIM_PIN_SIZE ); in asimcard_check_puk()
/external/stlport/stlport/stl/
D_stdexcept_base.c35 strncpy(_M_name, _STLP_PRIV __get_c_string(__str), __size - 1); in __Named_exception()
58 strncpy(_M_name, __x._M_name, __size - 1); in __Named_exception()
81 strncpy(_M_name, __x._M_name, __size - 1);
/external/netperf/
Dnetserver.c827 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()
Dnetsh.c355 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/libpcap/
Dfad-gifc.c211 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name)); in scan_proc_net_dev()
378 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
397 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
427 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
466 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs()
Dfad-glifc.c214 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
233 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
260 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
295 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs()
/external/jhead/
Dgpsinfo.c230 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/oprofile/libop/
Dop_xml_events.c87 strncpy(um_type, "bitmask", sizeof(um_type)); in xml_help_for_event()
90 strncpy(um_type, "exclusive", sizeof(um_type)); in xml_help_for_event()
93 strncpy(um_type, "mandatory", sizeof(um_type)); in xml_help_for_event()
/external/libselinux/src/
Dcanonicalize_context.c36 strncpy(buf, con, size); in security_canonicalize_context()
47 strncpy(buf, con, size); in security_canonicalize_context()
/external/bluetooth/bluedroid/main/
Dbte_conf.c300 strncpy(conf_pairs[0].value, "1", CONF_VALUE_LEN); in bte_parse_did_conf()
321 strncpy(conf_pairs[param_num].value, p, CONF_VALUE_LEN-1); in bte_parse_did_conf()
409 strncpy(rec.client_executable_url, in bte_load_did_conf()
412 strncpy(rec.service_description, in bte_load_did_conf()
415 strncpy(rec.documentation_url, in bte_load_did_conf()

12345678910>>...22