Searched refs:buf (Results 1 - 25 of 6088) sorted by relevance

1234567891011>>

/external/clang/test/Analysis/
H A Dundef-buffers.c7 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[
30 char *buf = malloc(2); local
38 char *buf = malloc(2); local
[all...]
H A DPR7218.c3 char buf[2]; local
4 buf[0] = a;
5 return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
H A Dout-of-bounds.c7 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/main/none/tests/x86/
H A Dcpuid_c.c5 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[
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dgetwd.c8 char* getwd(char* buf) { argument
9 return ki_getwd(buf);
H A Dlstat.c15 int __lxstat(int ver, const char* pathname, struct stat* buf) { argument
16 return ki_lstat(pathname, buf);
H A Dreadlink.c12 int readlink(const char* pathname, char* buf, int len) { argument
13 return ki_readlink(pathname, buf, len);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_dynarray.h47 util_dynarray_init(struct util_dynarray *buf) argument
49 memset(buf, 0, sizeof(*buf));
53 util_dynarray_fini(struct util_dynarray *buf) argument
55 if(buf->data)
57 FREE(buf->data);
58 util_dynarray_init(buf);
64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) argument
67 if(newsize > buf->capacity)
69 unsigned newcap = buf
82 util_dynarray_grow(struct util_dynarray *buf, int diff) argument
88 util_dynarray_trim(struct util_dynarray *buf) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_dynarray.h47 util_dynarray_init(struct util_dynarray *buf) argument
49 memset(buf, 0, sizeof(*buf));
53 util_dynarray_fini(struct util_dynarray *buf) argument
55 if(buf->data)
57 FREE(buf->data);
58 util_dynarray_init(buf);
64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) argument
67 if(newsize > buf->capacity)
69 unsigned newcap = buf
82 util_dynarray_grow(struct util_dynarray *buf, int diff) argument
88 util_dynarray_trim(struct util_dynarray *buf) argument
[all...]
/external/valgrind/main/none/tests/s390x/
H A Dstmg.c8 char buf[24]; local
15 :"=m" (buf)
20 "lgr 3, %0\n\t" // buf
23 : : "a" (buf)
30 char buf[64]; local
38 :"=m" (buf)
43 "lgr 3, %0\n\t" // buf
46 : : "a" (buf)
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
H A DBaseDexBuffer.java39 @Nonnull /* package private */ final byte[] buf; field in class:BaseDexBuffer
41 public BaseDexBuffer(@Nonnull byte[] buf) { argument
42 this.buf = buf;
46 byte[] buf = this.buf;
47 int result = (buf[offset] & 0xff) |
48 ((buf[offset+1] & 0xff) << 8) |
49 ((buf[offset+2] & 0xff) << 16) |
50 ((buf[offse
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_printf_test.cc23 char buf[1024]; local
24 uptr len = internal_snprintf(buf, sizeof(buf),
30 EXPECT_EQ(len, strlen(buf));
34 "0x00000123e_string_r", buf);
37 "0x000000000123e_string_r", buf);
42 char buf[] = "123456789"; local
43 uptr len = internal_snprintf(buf, 4, "%s", "abcdef"); // NOLINT
45 EXPECT_STREQ("abc", buf);
46 EXPECT_EQ(buf[
56 char buf[] = "123456789"; local
69 char buf[] = "123456789"; local
88 char buf[] = "123456789"; local
113 char buf[1024]; local
147 char buf[1024]; local
[all...]
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.members/
H A Dstr.pass.cpp23 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/chromium_org/third_party/libjingle/source/talk/base/
H A Dbyteorder_unittest.cc37 uint8 buf[8] = { 0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u }; local
38 Set8(buf, 0, 0xfb);
39 Set8(buf, 1, 0x12);
40 EXPECT_EQ(0xfb, buf[0]);
41 EXPECT_EQ(0x12, buf[1]);
42 SetBE16(buf, 0x1234);
43 EXPECT_EQ(0x12, buf[0]);
44 EXPECT_EQ(0x34, buf[1]);
45 SetLE16(buf, 0x1234);
46 EXPECT_EQ(0x34, buf[
80 uint8 buf[8]; local
[all...]
/external/chromium_org/third_party/webrtc/base/
H A Dbyteorder_unittest.cc20 uint8 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[
63 uint8 buf[8]; local
[all...]
/external/compiler-rt/test/msan/Linux/
H A Dsyscalls.cc21 char buf[1000]; local
24 memset(buf, 0, sizeof(buf));
25 __msan_unpoison(buf, sizeof(buf));
26 __sanitizer_syscall_pre_recvmsg(0, buf, 0);
27 __sanitizer_syscall_pre_rt_sigpending(buf, kTen);
28 __sanitizer_syscall_pre_getdents(0, buf, kTen);
29 __sanitizer_syscall_pre_getdents64(0, buf, kTen);
31 __msan_unpoison(buf, sizeo
[all...]
/external/chromium_org/content/browser/loader/
H A Dresource_buffer_unittest.cc11 scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); local
12 EXPECT_TRUE(buf->Initialize(100, 5, 10));
13 EXPECT_TRUE(buf->CanAllocate());
18 char* ptr = buf->Allocate(&size);
21 EXPECT_TRUE(buf->CanAllocate());
23 EXPECT_EQ(0, buf->GetLastAllocationOffset());
25 buf->ShrinkLastAllocation(2); // Less than our min allocation size.
26 EXPECT_EQ(0, buf->GetLastAllocationOffset());
27 EXPECT_TRUE(buf->CanAllocate());
33 char* ptr = buf
48 scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); local
64 scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); local
85 scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); local
119 scoped_refptr<ResourceBuffer> buf = new ResourceBuffer(); local
[all...]
/external/chromium_org/third_party/openssl/openssl/crypto/
H A Dcversion.c72 static char buf[sizeof(DATE)+11]; local
74 BIO_snprintf(buf,sizeof buf,"built on: %s",DATE);
75 return(buf);
83 static char buf[sizeof(CFLAGS)+11]; local
85 BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS);
86 return(buf);
94 static char buf[sizeof(PLATFORM)+11]; local
96 BIO_snprintf(buf,sizeo
[all...]
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dstrerror_r_test.cc10 char buf[1024]; local
11 char *res = (char *)strerror_r(300, buf, sizeof(buf));
/external/openssl/crypto/
H A Dcversion.c72 static char buf[sizeof(DATE)+11]; local
74 BIO_snprintf(buf,sizeof buf,"built on: %s",DATE);
75 return(buf);
83 static char buf[sizeof(CFLAGS)+11]; local
85 BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS);
86 return(buf);
94 static char buf[sizeof(PLATFORM)+11]; local
96 BIO_snprintf(buf,sizeo
[all...]
/external/libunwind/tests/
H A DLrs-race.c49 void *buf[20]; local
52 if ((n = unw_backtrace (buf, 20)) < 3)
59 void *buf[20]; local
62 if ((n = unw_backtrace (buf, 20)) < 3)
69 void *buf[20]; local
72 if ((n = unw_backtrace (buf, 20)) < 3)
79 void *buf[20]; local
82 if ((n = unw_backtrace (buf, 20)) < 3)
89 void *buf[20]; local
92 if ((n = unw_backtrace (buf, 2
99 void *buf[20]; local
109 void *buf[20]; local
119 void *buf[20]; local
129 void *buf[20]; local
139 void *buf[20]; local
149 void *buf[20]; local
159 void *buf[20]; local
169 void *buf[20]; local
179 void *buf[20]; local
189 void *buf[20]; local
199 void *buf[20]; local
209 void *buf[20]; local
219 void *buf[20]; local
229 void *buf[20]; local
239 void *buf[20]; local
249 void *buf[20]; local
259 void *buf[20]; local
269 void *buf[20]; local
279 void *buf[20]; local
289 void *buf[20]; local
299 void *buf[20]; local
309 void *buf[20]; local
319 void *buf[20]; local
329 void *buf[20]; local
339 void *buf[20]; local
349 void *buf[20]; local
359 void *buf[20]; local
369 void *buf[20]; local
379 void *buf[20]; local
389 void *buf[20]; local
399 void *buf[20]; local
409 void *buf[20]; local
419 void *buf[20]; local
429 void *buf[20]; local
439 void *buf[20]; local
449 void *buf[20]; local
459 void *buf[20]; local
469 void *buf[20]; local
479 void *buf[20]; local
489 void *buf[20]; local
499 void *buf[20]; local
509 void *buf[20]; local
519 void *buf[20]; local
529 void *buf[20]; local
539 void *buf[20]; local
549 void *buf[20]; local
559 void *buf[20]; local
569 void *buf[20]; local
579 void *buf[20]; local
589 void *buf[20]; local
599 void *buf[20]; local
609 void *buf[20]; local
619 void *buf[20]; local
629 void *buf[20]; local
639 void *buf[20]; local
649 void *buf[20]; local
659 void *buf[20]; local
669 void *buf[20]; local
679 void *buf[20]; local
689 void *buf[20]; local
699 void *buf[20]; local
709 void *buf[20]; local
719 void *buf[20]; local
729 void *buf[20]; local
739 void *buf[20]; local
749 void *buf[20]; local
759 void *buf[20]; local
769 void *buf[20]; local
779 void *buf[20]; local
789 void *buf[20]; local
799 void *buf[20]; local
809 void *buf[20]; local
819 void *buf[20]; local
829 void *buf[20]; local
839 void *buf[20]; local
849 void *buf[20]; local
859 void *buf[20]; local
869 void *buf[20]; local
879 void *buf[20]; local
889 void *buf[20]; local
899 void *buf[20]; local
909 void *buf[20]; local
919 void *buf[20]; local
929 void *buf[20]; local
939 void *buf[20]; local
949 void *buf[20]; local
959 void *buf[20]; local
969 void *buf[20]; local
979 void *buf[20]; local
989 void *buf[20]; local
999 void *buf[20]; local
1009 void *buf[20]; local
1019 void *buf[20]; local
1029 void *buf[20]; local
1039 void *buf[20]; local
1049 void *buf[20]; local
1059 void *buf[20]; local
1069 void *buf[20]; local
1079 void *buf[20]; local
1089 void *buf[20]; local
1099 void *buf[20]; local
1109 void *buf[20]; local
1119 void *buf[20]; local
1129 void *buf[20]; local
1139 void *buf[20]; local
1149 void *buf[20]; local
1159 void *buf[20]; local
1169 void *buf[20]; local
1179 void *buf[20]; local
1189 void *buf[20]; local
1199 void *buf[20]; local
1209 void *buf[20]; local
1219 void *buf[20]; local
1229 void *buf[20]; local
1239 void *buf[20]; local
1249 void *buf[20]; local
1259 void *buf[20]; local
1269 void *buf[20]; local
1279 void *buf[20]; local
1289 void *buf[20]; local
1299 void *buf[20]; local
1309 void *buf[20]; local
1319 void *buf[20]; local
1329 void *buf[20]; local
[all...]
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.cons/
H A Ddefault.pass.cpp23 std::stringbuf buf; local
24 assert(buf.str() == "");
27 std::wstringbuf buf; local
28 assert(buf.str() == L"");
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void * wpabuf_put(struct wpabuf *buf, size_t len);
37 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
38 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
43 * @buf: wpabuf buffer
46 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
48 return buf
56 wpabuf_len(const struct wpabuf *buf) argument
66 wpabuf_tailroom(const struct wpabuf *buf) argument
76 wpabuf_head(const struct wpabuf *buf) argument
81 wpabuf_head_u8(const struct wpabuf *buf) argument
91 wpabuf_mhead(struct wpabuf *buf) argument
96 wpabuf_mhead_u8(struct wpabuf *buf) argument
101 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
107 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
113 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
119 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
125 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
131 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
137 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
150 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void * wpabuf_put(struct wpabuf *buf, size_t len);
37 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
38 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
43 * @buf: wpabuf buffer
46 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
48 return buf
56 wpabuf_len(const struct wpabuf *buf) argument
66 wpabuf_tailroom(const struct wpabuf *buf) argument
76 wpabuf_head(const struct wpabuf *buf) argument
81 wpabuf_head_u8(const struct wpabuf *buf) argument
91 wpabuf_mhead(struct wpabuf *buf) argument
96 wpabuf_mhead_u8(struct wpabuf *buf) argument
101 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
107 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
113 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
119 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
125 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
131 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
137 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
150 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void * wpabuf_put(struct wpabuf *buf, size_t len);
37 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
38 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
43 * @buf: wpabuf buffer
46 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
48 return buf
56 wpabuf_len(const struct wpabuf *buf) argument
66 wpabuf_tailroom(const struct wpabuf *buf) argument
76 wpabuf_head(const struct wpabuf *buf) argument
81 wpabuf_head_u8(const struct wpabuf *buf) argument
91 wpabuf_mhead(struct wpabuf *buf) argument
96 wpabuf_mhead_u8(struct wpabuf *buf) argument
101 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
107 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
113 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
119 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
125 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
131 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
137 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
150 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]

Completed in 3566 milliseconds

1234567891011>>