/external/ltp/tools/ |
ltpoutput | 27 $buf = ""; 30 $buf = $buf . $line; 32 if($buf =~ "termination_id=[^0]") { 33 $buf =~ tr/<>/-/; 34 print $buf; 36 $buf = "";
|
ltpoutput2 | 26 $buf = <STDIN>; 29 $buf = $buf . $line; 31 if($buf =~ "termination_id=[^0]") { 32 $buf =~ tr/<>/-/; 33 print $buf; 35 $buf = "";
|
/external/clang/test/Analysis/ |
undef-buffers.c | 7 char buf[2]; local 8 buf[0] = 'a'; 9 return buf[1]; // expected-warning{{Undefined}} 13 char buf[2]; local 14 buf[1] = 'a'; 15 return buf[0]; // expected-warning{{Undefined}} 20 char buf[2]; local 22 buf[0] = 'a'; 24 return buf[1]; // expected-warning{{Undefined}} 26 return buf[0] 30 char *buf = malloc(2); local 38 char *buf = malloc(2); local [all...] |
PR7218.c | 3 char buf[2]; local 4 buf[0] = a; 5 return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
|
out-of-bounds.c | 7 int buf[100]; local 8 buf[100] = 1; // expected-warning{{Out of bound memory access}} 12 int buf[100]; local 13 buf[99] = 1; // no-warning 36 int buf[100]; local 37 int *p = buf; 42 int buf[100]; local 43 int *p = buf; 52 int buf[100]; local 53 int *p = buf; 59 int buf[100]; local 66 int buf[100]; local 73 int buf[100]; local 83 int buf[100]; local 92 int buf[100]; local 102 int buf[100]; local 113 int buf[100][100]; local 122 int buf[100][100]; local 127 int buf[100][100]; local 135 int buf[100]; local 144 int buf[100]; local 153 int *buf = get_symbolic(); local [all...] |
/external/curl/lib/ |
curl_endian.c | 36 * buf [in] - A pointer to a 2 byte buffer. 40 unsigned short Curl_read16_le(unsigned char *buf) 42 return (unsigned short)(((unsigned short)buf[0]) | 43 ((unsigned short)buf[1] << 8)); 55 * buf [in] - A pointer to a 4 byte buffer. 59 unsigned int Curl_read32_le(unsigned char *buf) 61 return ((unsigned int)buf[0]) | ((unsigned int)buf[1] << 8) | 62 ((unsigned int)buf[2] << 16) | ((unsigned int)buf[3] << 24) [all...] |
/external/valgrind/none/tests/x86/ |
cpuid_c.c | 5 extern void get_cpuid0 ( unsigned int* buf ); 6 extern void get_cpuid1 ( unsigned int* buf ); 8 unsigned int buf[4]; variable 12 get_cpuid0(&buf[0]); 14 buf[0], buf[1], buf[2], buf[3] ); 16 get_cpuid1(&buf[0]); 18 buf[0], buf[1], buf[2], buf[3] ) [all...] |
/external/strace/tests/ |
getrandom.c | 39 unsigned char buf[4]; local 41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1) 44 (int) buf[0], (int) buf[1], (int) buf[2]); 46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf)) [all...] |
/external/strace/tests-m32/ |
getrandom.c | 39 unsigned char buf[4]; local 41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1) 44 (int) buf[0], (int) buf[1], (int) buf[2]); 46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf)) [all...] |
/external/strace/tests-mx32/ |
getrandom.c | 39 unsigned char buf[4]; local 41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1) 44 (int) buf[0], (int) buf[1], (int) buf[2]); 46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf)) [all...] |
/bionic/tests/ |
libc_logging_test.cpp | 26 char buf[BUFSIZ]; local 28 __libc_format_buffer(buf, sizeof(buf), "a"); 29 EXPECT_STREQ("a", buf); 31 __libc_format_buffer(buf, sizeof(buf), "%%"); 32 EXPECT_STREQ("%", buf); 34 __libc_format_buffer(buf, sizeof(buf), "01234"); 35 EXPECT_STREQ("01234", buf); 114 char buf[BUFSIZ]; local 124 char buf[BUFSIZ]; local 134 char buf[BUFSIZ]; local 148 char buf[BUFSIZ]; local 162 char buf[BUFSIZ]; local 172 char buf[BUFSIZ]; local 182 char buf[BUFSIZ]; local [all...] |
stack_protector_test_helper.cpp | 19 char buf[128]; local 23 volatile char* p = buf; 24 int size = static_cast<int>(sizeof(buf) + 1); 25 while ((p - buf) < size) *p++ = '\0';
|
fortify_compilation_test.cpp | 32 char buf[4]; local 37 sprintf(buf, "foobar"); // NOLINT(runtime/printf) 42 sprintf(buf, "%s", "foobar"); // NOLINT(runtime/printf) 46 char buf[4]; local 51 snprintf(buf, 5, "foobar"); // NOLINT(runtime/printf) 56 snprintf(buf, 5, "%s", "foobar"); // NOLINT(runtime/printf) 61 snprintf(buf, 5, " %s ", "foobar"); // NOLINT(runtime/printf) 66 snprintf(buf, 5, "%d", 100000); // NOLINT(runtime/printf) 70 char buf[4]; local 75 memcpy(buf, "foobar", sizeof("foobar") + 100) 79 char buf[4]; local 88 char buf[4]; local 97 char buf[4]; local 106 char buf[4]; local 115 char buf[4]; local 124 char buf[4] = ""; local 133 char buf[4] = ""; local 144 char buf[4]; local 156 char buf[4]; local 168 char buf[4]; local 182 char buf[4]; local 199 char buf[4]; local 236 char buf[4]; local 244 char buf[4]; local 252 char buf[4] = {0}; local 260 char buf[4] = {0}; local 268 char buf[4]; local 276 char buf[4] = {0}; local 284 void *buf = calloc(atoi("5"), 1); local 292 char buf[4] = {0}; local 300 char buf[4] = {0}; local 315 char buf[4] = {0}; local 325 char buf[4] = {0}; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_dynarray.h | 47 util_dynarray_init(struct util_dynarray *buf) 49 memset(buf, 0, sizeof(*buf)); 53 util_dynarray_fini(struct util_dynarray *buf) 55 if(buf->data) 57 FREE(buf->data); 58 util_dynarray_init(buf); 64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) 67 if(newsize > buf->capacity) 69 unsigned newcap = buf->capacity << 1 [all...] |
/external/compiler-rt/test/msan/Linux/ |
syscalls.cc | 22 char buf[1000] __attribute__((aligned(8))); local 25 memset(buf, 0, sizeof(buf)); 26 __msan_unpoison(buf, sizeof(buf)); 27 __sanitizer_syscall_pre_recvmsg(0, buf, 0); 28 __sanitizer_syscall_pre_rt_sigpending(buf, kTen); 29 __sanitizer_syscall_pre_getdents(0, buf, kTen); 30 __sanitizer_syscall_pre_getdents64(0, buf, kTen); 32 __msan_unpoison(buf, sizeof(buf)) [all...] |
/external/valgrind/none/tests/s390x/ |
stmg.c | 8 char buf[24]; local 10 /* No-wrap around case; copies 24 bytes from BASE to BUF */ 15 :"=m" (buf) 18 /* Write out BUF */ 20 "lgr 3, %0\n\t" // buf 23 : : "a" (buf) 30 char buf[64]; local 32 /* Wrap around case; copies 32 bytes from BASE to BUF */ 38 :"=m" (buf) 41 /* Write out BUF */ [all...] |
/external/kmod/shared/ |
strbuf.c | 31 static bool buf_grow(struct strbuf *buf, size_t newsize) 36 if (newsize <= buf->size) 44 tmp = realloc(buf->bytes, sz); 47 buf->bytes = tmp; 48 buf->size = sz; 52 void strbuf_init(struct strbuf *buf) 54 buf->bytes = NULL; 55 buf->size = 0; 56 buf->used = 0; 59 void strbuf_release(struct strbuf *buf) [all...] |
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/ |
str.pass.cpp | 23 std::stringbuf buf("testing"); 24 assert(buf.str() == "testing"); 25 buf.str("another test"); 26 assert(buf.str() == "another test"); 29 std::wstringbuf buf(L"testing"); 30 assert(buf.str() == L"testing"); 31 buf.str(L"another test"); 32 assert(buf.str() == L"another test");
|
/external/ltp/tools/top-LTP/proc/ |
status.c | 14 static char buf[4] = " "; local 16 buf[0] = task->state; 19 buf[1] = 'W'; 21 buf[1] = ' '; 24 buf[2] = '<'; 26 buf[2] = 'N'; 28 buf[2] = ' '; 30 return (buf);
|
/prebuilts/go/darwin-x86/src/debug/dwarf/testdata/ |
line1.h | 3 char buf[10]; local 6 buf[i] = 1;
|
/prebuilts/go/linux-x86/src/debug/dwarf/testdata/ |
line1.h | 3 char buf[10]; local 6 buf[i] = 1;
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.members/ |
str.pass.cpp | 23 std::stringbuf buf("testing"); 24 assert(buf.str() == "testing"); 25 buf.str("another test"); 26 assert(buf.str() == "another test"); 29 std::wstringbuf buf(L"testing"); 30 assert(buf.str() == L"testing"); 31 buf.str(L"another test"); 32 assert(buf.str() == L"another test");
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/input.output/string.streams/stringbuf/stringbuf.members/ |
str.pass.cpp | 23 std::stringbuf buf("testing"); 24 assert(buf.str() == "testing"); 25 buf.str("another test"); 26 assert(buf.str() == "another test"); 29 std::wstringbuf buf(L"testing"); 30 assert(buf.str() == L"testing"); 31 buf.str(L"another test"); 32 assert(buf.str() == L"another test");
|
/external/webrtc/webrtc/base/ |
byteorder_unittest.cc | 20 uint8_t buf[8] = {0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u}; local 21 Set8(buf, 0, 0xfb); 22 Set8(buf, 1, 0x12); 23 EXPECT_EQ(0xfb, buf[0]); 24 EXPECT_EQ(0x12, buf[1]); 25 SetBE16(buf, 0x1234); 26 EXPECT_EQ(0x12, buf[0]); 27 EXPECT_EQ(0x34, buf[1]); 28 SetLE16(buf, 0x1234); 29 EXPECT_EQ(0x34, buf[0]) 63 uint8_t buf[8]; local [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
BaseDexBuffer.java | 39 @Nonnull /* package private */ final byte[] buf; field in class:BaseDexBuffer 42 public BaseDexBuffer(@Nonnull byte[] buf) { 43 this(buf, 0); 45 public BaseDexBuffer(@Nonnull byte[] buf, int offset) { 46 this.buf = buf; 51 byte[] buf = this.buf; 53 int result = (buf[offset] & 0xff) | 54 ((buf[offset+1] & 0xff) << 8) [all...] |