/external/clang/test/Sema/ |
warn-strlcpycat-size.c | 4 size_t strlcpy (char * restrict dst, const char * restrict src, size_t size); 21 strlcpy(s1, s2, sizeof(s1)); // no warning 22 strlcpy(s1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}} 23 strlcpy(s1, s3, strlen(s3)+1); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}} 25 strlcpy(s4.f1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}} 26 strlcpy((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{cha (…) [all...] |
builtins-gnu-mode.c | 18 int strlcpy; variable
|
/external/chromium_org/third_party/libevent/ |
strlcpy-internal.h | 15 #define strlcpy _event_strlcpy macro
|
strlcpy.c | 1 /* $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $ */ 31 static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $"; 41 #include "strlcpy-internal.h"
|
BUILD.gn | 19 "strlcpy.c",
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
abspath.c | 16 strlcpy(cwd, pwd, PATH_MAX); 27 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX)
|
/bionic/libc/bionic/ |
__strlcpy_chk.cpp | 36 * __strlcpy_chk. Called in place of strlcpy() when we know the 44 * This strlcpy check is called if _FORTIFY_SOURCE is defined and 50 __fortify_chk_fail("strlcpy: prevented write past end of buffer", 0); 53 return strlcpy(dest, src, supplied_size);
|
/external/libedit/src/ |
strlcpy.c | 1 /* $NetBSD: strlcpy.c,v 1.3 2007/06/04 18:19:27 christos Exp $ */ 2 /* $OpenBSD: strlcpy.c,v 1.7 2003/04/12 21:56:39 millert Exp $ */ 23 __RCSID("$NetBSD: strlcpy.c,v 1.3 2007/06/04 18:19:27 christos Exp $"); 32 __weak_alias(strlcpy, _strlcpy) 43 strlcpy(char *dst, const char *src, size_t siz)
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_dump_layers.cpp | 66 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); 68 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); 119 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); 149 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); 379 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); 382 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); 385 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); 388 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); 391 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); 394 strlcpy(pixFormatStr, "YV12", sizeof(pixFormatStr)) [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_dump_layers.cpp | 62 strlcpy(mDisplayName, "external", sizeof(mDisplayName)); 64 strlcpy(mDisplayName, "primary", sizeof(mDisplayName)); 115 strlcpy(mDumpPropStrPng, dumpPropStr, sizeof(mDumpPropStrPng)); 145 strlcpy(mDumpPropStrRaw, dumpPropStr, sizeof(mDumpPropStrRaw)); 330 strlcpy(pixFormatStr, "RGBA_8888", sizeof(pixFormatStr)); 333 strlcpy(pixFormatStr, "RGBX_8888", sizeof(pixFormatStr)); 336 strlcpy(pixFormatStr, "RGB_888", sizeof(pixFormatStr)); 339 strlcpy(pixFormatStr, "RGB_565", sizeof(pixFormatStr)); 342 strlcpy(pixFormatStr, "BGRA_8888", sizeof(pixFormatStr)); 345 strlcpy(pixFormatStr, "YV12", sizeof(pixFormatStr)) [all...] |
/system/core/include/cutils/ |
memory.h | 34 /* Declaration of strlcpy() for platforms that don't already have it. */ 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/external/clang/test/Analysis/ |
cstring-syntax.c | 1 // RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -Wno-strncat-size -Wno-strlcpy-strlcat-size -Wno-sizeof-array-argument -Wno-sizeof-pointer-memaccess -verify %s
|
/external/dhcpcd/ |
config.mk | 16 COMPAT_SRCS+= compat/strlcpy.c
|
/external/tcpdump/missing/ |
strlcpy.c | 1 /* $NetBSD: strlcpy.c,v 1.5 1999/09/20 04:39:47 lukem Exp $ */ 2 /* from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp */ 33 "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcpy.c,v 1.5 2003-11-16 09:36:52 guy Exp $ (LBL)"; 50 strlcpy(char *dst, const char *src, size_t siz) function
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
strlcpy.c | 1 /* $OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $ */ 28 strlcpy(char *dst, const char *src, size_t siz) function
|
/external/mksh/src/ |
strlcpy.c | 21 __RCSID("$MirOS: src/bin/mksh/strlcpy.c,v 1.7 2009/06/10 18:12:50 tg Rel $"); 29 strlcpy(char *dst, const char *src, size_t siz) function
|
/external/clang/test/CodeGen/ |
inline.c | 15 // CHECK1: define i{{..}} @strlcpy 37 // CHECK2: define available_externally i{{..}} @strlcpy 123 // PR11062; the fact that the function is named strlcpy matters here. 124 inline __typeof(sizeof(int)) strlcpy(char *dest, const char *src, __typeof(sizeof(int)) size) { return 3; } function 125 void test8() { strlcpy(0,0,0); }
|
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioHardwareALSA.cpp | 791 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); 793 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); 882 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI2 , sizeof(alsa_handle.useCase)); 884 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, sizeof(alsa_handle.useCase)); [all...] |
AudioStreamInALSA.cpp | 152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, 158 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, 165 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, 171 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, 177 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_FM, sizeof(mHandle->useCase)); 179 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, sizeof(mHandle->useCase)); 182 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(mHandle->useCase)); 187 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, sizeof(mHandle->useCase)); 189 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, sizeof(mHandle->useCase)); 201 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_INCALL_REC [all...] |
AudioStreamOutALSA.cpp | 132 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_IP_VOICECALL, 135 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI2, 138 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI, 141 strlcpy(mHandle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, 146 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_VOIP, 149 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, 152 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC, 155 strlcpy(mHandle->useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC,
|
/external/chromium_org/net/disk_cache/blockfile/ |
mapped_file_unittest.cc | 70 base::strlcpy(buffer1, "the data", arraysize(buffer1)); 89 base::strlcpy(buffer1, "the data", arraysize(buffer1)); 122 base::strlcpy(static_cast<char*>(file_block1.buffer()), "the data",
|
/external/libedit/ |
configure.ac | 111 AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat fgetln vis strvis strunvis __secure_getenv secure_getenv]) 113 # strlcpy 114 AC_CHECK_FUNC(strlcpy, found_strlcpy=yes, found_strlcpy=no)
|
/system/core/libcutils/ |
memory.c | 59 /* Implementation of strlcpy() for platforms that don't already have it. */ 67 strlcpy(char *dst, const char *src, size_t siz) function
|
/system/core/libsync/ |
sync.c | 43 strlcpy(data.name, name, sizeof(data.name)); 109 strlcpy(data.name, name, sizeof(data.name));
|
/external/bluetooth/bluedroid/main/ |
bte_conf.c | 49 strlcpy(hci_logfile, config_get_string(config, CONFIG_DEFAULT_SECTION, "BtSnoopFileName", ""), sizeof(hci_logfile)); 109 strlcpy(record.client_executable_url, config_get_string(config, section_name, "clientExecutableURL", ""), sizeof(record.client_executable_url)); 110 strlcpy(record.service_description, config_get_string(config, section_name, "serviceDescription", ""), sizeof(record.service_description)); 111 strlcpy(record.documentation_url, config_get_string(config, section_name, "documentationURL", ""), sizeof(record.documentation_url));
|