/external/python/cpython2/RISCOS/Python/ |
getcwd_riscos.c | 1 char *getcwd(char *buf, int size) 3 buf[0] = '\0'; 4 return 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/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/libgsm/src/ |
toast_lin.c | 16 int linear_input (buf) gsm_signal * buf; 18 return fread( (char *)buf, sizeof(*buf), 160, in ); 21 int linear_output P1((buf), gsm_signal * buf) 23 return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 );
|
/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/ |
async_safe_test.cpp | 25 char buf[BUFSIZ]; local 27 async_safe_format_buffer(buf, sizeof(buf), "a"); 28 EXPECT_STREQ("a", buf); 30 async_safe_format_buffer(buf, sizeof(buf), "%%"); 31 EXPECT_STREQ("%", buf); 33 async_safe_format_buffer(buf, sizeof(buf), "01234"); 34 EXPECT_STREQ("01234", buf); 113 char buf[BUFSIZ]; local 123 char buf[BUFSIZ]; local 133 char buf[BUFSIZ]; local 147 char buf[BUFSIZ]; local 161 char buf[BUFSIZ]; local 171 char buf[BUFSIZ]; local 181 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';
|
resolv_test.cpp | 42 uint8_t buf[128]; local 43 ASSERT_EQ(128, b64_pton(data, buf, sizeof(buf))); 47 char buf[128]; local 48 memset(buf, 'x', sizeof(buf)); 51 buf, sizeof(buf))); 52 ASSERT_STREQ(buf, "aGVsbG8="); 56 u_char buf[128] 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/ltp/testcases/kernel/io/ltp-aiodio/ |
common_checkzero.h | 22 static char *check_zero(char *buf, int size) 26 p = buf; 29 if (*buf != 0) { 30 fprintf(stderr, "non zero buffer at buf[%u] => 0x%02x,%02x,%02x,%02x\n", 31 (unsigned int)(buf - p), 32 (unsigned int)buf[0], 33 size > 1 ? (unsigned int)buf[1] : 0, 34 size > 2 ? (unsigned int)buf[2] : 0, 35 size > 3 ? (unsigned int)buf[3] : 0); 36 return buf; [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/adhd/cras/src/common/ |
byte_buffer.h | 22 struct byte_buffer *buf; local 23 buf = (struct byte_buffer *) 25 if (!buf) 26 return buf; 27 buf->max_size = buffer_size_bytes; 28 buf->used_size = buffer_size_bytes; 29 return buf; 32 static inline void byte_buffer_set_used_size(struct byte_buffer *buf, 35 buf->used_size = MIN(used_size, buf->max_size) [all...] |
/bionic/libc/private/ |
FdPath.h | 22 snprintf(buf, sizeof(buf), "/proc/self/fd/%d", fd); 26 return buf; 30 char buf[40]; member in class:FdPath
|
/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");
|
/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/r16/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/freetype/src/pcf/ |
pcfutil.c | 44 BitOrderInvert( unsigned char* buf, 47 for ( ; nbytes > 0; nbytes--, buf++ ) 49 unsigned int val = *buf; 56 *buf = (unsigned char)val; 66 TwoByteSwap( unsigned char* buf, 69 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 ) 74 c = buf[0]; 75 buf[0] = buf[1]; 76 buf[1] = c [all...] |