/external/clang/test/Analysis/ |
H A D | 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[ 30 char *buf = malloc(2); local 38 char *buf = malloc(2); local [all...] |
H A D | PR7218.c | 3 char buf[2]; local 4 buf[0] = a; 5 return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
|
H A D | 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/ |
H A D | 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[ [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_dynarray.h | 47 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/none/tests/s390x/ |
H A D | stmg.c | 8 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/strace/tests/ |
H A D | getrandom.c | 8 char buf[4]; local 10 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1) 12 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf)) 14 if (syscall(__NR_getrandom, buf, sizeof(buf), 0x3003) != -1)
|
/external/compiler-rt/test/msan/Linux/ |
H A D | syscalls.cc | 22 char buf[1000]; 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, sizeo [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
H A D | BaseDexBuffer.java | 39 @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/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/ |
H A D | 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/openssh/ |
H A D | sshbuf.c | 32 sshbuf_check_sanity(const struct sshbuf *buf) argument 35 if (__predict_false(buf == NULL || 36 (!buf->readonly && buf->d != buf->cd) || 37 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX || 38 buf->cd == NULL || 39 (buf->dont_free && (buf 54 sshbuf_maybe_pack(struct sshbuf *buf, int force) argument 119 sshbuf_fromb(struct sshbuf *buf) argument 148 sshbuf_free(struct sshbuf *buf) argument 189 sshbuf_reset(struct sshbuf *buf) argument 210 sshbuf_max_size(const struct sshbuf *buf) argument 216 sshbuf_alloc(const struct sshbuf *buf) argument 222 sshbuf_parent(const struct sshbuf *buf) argument 228 sshbuf_refcount(const struct sshbuf *buf) argument 234 sshbuf_set_max_size(struct sshbuf *buf, size_t max_size) argument 273 sshbuf_len(const struct sshbuf *buf) argument 281 sshbuf_avail(const struct sshbuf *buf) argument 289 sshbuf_ptr(const struct sshbuf *buf) argument 297 sshbuf_mutable_ptr(const struct sshbuf *buf) argument 305 sshbuf_check_reserve(const struct sshbuf *buf, size_t len) argument 321 sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp) argument 374 sshbuf_consume(struct sshbuf *buf, size_t len) argument 391 sshbuf_consume_end(struct sshbuf *buf, size_t len) argument [all...] |
/external/clang/test/Sema/ |
H A D | builtin-longjmp.c | 17 jmp_buf buf; variable 26 __builtin_longjmp(buf, 1); // expected-error {{__builtin_longjmp is not supported for the current target}} 32 if (!__builtin_setjmp(buf)) // expected-error {{__builtin_setjmp is not supported for the current target}}
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
H A D | strerror_r_test.cc | 10 char buf[1024]; local 11 char *res = (char *)strerror_r(300, buf, sizeof(buf));
|
/external/libunwind/tests/ |
H A D | Lrs-race.c | 49 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/std/input.output/string.streams/stringbuf/stringbuf.cons/ |
H A D | default.pass.cpp | 23 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 D | wpabuf.c | 22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument 25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); 30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument 33 struct wpabuf_trace *trace = wpabuf_get_trace(buf); 40 buf, (unsigned long) buf->size, (unsigned long) buf->used, 49 struct wpabuf *buf = *_buf; local 54 if (buf == NULL) { 60 trace = wpabuf_get_trace(buf); 118 struct wpabuf *buf; local 140 struct wpabuf *buf; local 162 struct wpabuf *buf = wpabuf_alloc(len); local 171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local 182 wpabuf_free(struct wpabuf *buf) argument 208 wpabuf_clear_free(struct wpabuf *buf) argument 217 wpabuf_put(struct wpabuf *buf, size_t len) argument 277 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument 300 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument [all...] |
/external/wpa_supplicant_8/src/utils/ |
H A D | wpabuf.c | 22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument 25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); 30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument 33 struct wpabuf_trace *trace = wpabuf_get_trace(buf); 40 buf, (unsigned long) buf->size, (unsigned long) buf->used, 49 struct wpabuf *buf = *_buf; local 54 if (buf == NULL) { 60 trace = wpabuf_get_trace(buf); 118 struct wpabuf *buf; local 140 struct wpabuf *buf; local 162 struct wpabuf *buf = wpabuf_alloc(len); local 171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local 182 wpabuf_free(struct wpabuf *buf) argument 208 wpabuf_clear_free(struct wpabuf *buf) argument 217 wpabuf_put(struct wpabuf *buf, size_t len) argument 277 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument 300 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | wpabuf.c | 22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument 25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); 30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument 33 struct wpabuf_trace *trace = wpabuf_get_trace(buf); 40 buf, (unsigned long) buf->size, (unsigned long) buf->used, 49 struct wpabuf *buf = *_buf; local 54 if (buf == NULL) { 60 trace = wpabuf_get_trace(buf); 118 struct wpabuf *buf; local 140 struct wpabuf *buf; local 162 struct wpabuf *buf = wpabuf_alloc(len); local 171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local 182 wpabuf_free(struct wpabuf *buf) argument 208 wpabuf_clear_free(struct wpabuf *buf) argument 217 wpabuf_put(struct wpabuf *buf, size_t len) argument 277 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument 300 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument [all...] |
/external/libxml2/ |
H A D | buf.c | 2 * buf.c: memory buffers for libxml2 30 #include "buf.h" 39 * directly the input->buf->buffer structures. 59 #define UPDATE_COMPAT(buf) \ 60 if (buf->size < INT_MAX) buf->compat_size = buf->size; \ 61 else buf->compat_size = INT_MAX; \ 62 if (buf->use < INT_MAX) buf 91 xmlBufMemoryError(xmlBufPtr buf, const char *extra) argument 106 xmlBufOverflowError(xmlBufPtr buf, const char *extra) argument 195 xmlBufDetach(xmlBufPtr buf) argument 266 xmlBufGetAllocationScheme(xmlBufPtr buf) argument 287 xmlBufSetAllocationScheme(xmlBufPtr buf, xmlBufferAllocationScheme scheme) argument 327 xmlBufFree(xmlBufPtr buf) argument 353 xmlBufEmpty(xmlBufPtr buf) argument 386 xmlBufShrink(xmlBufPtr buf, size_t len) argument 435 xmlBufGrowInternal(xmlBufPtr buf, size_t len) argument 495 xmlBufGrow(xmlBufPtr buf, int len) argument 517 xmlBufInflate(xmlBufPtr buf, size_t len) argument 534 xmlBufDump(FILE *file, xmlBufPtr buf) argument 568 xmlBufContent(const xmlBuf *buf) argument 586 xmlBufEnd(xmlBufPtr buf) argument 607 xmlBufAddLen(xmlBufPtr buf, size_t len) argument 632 xmlBufErase(xmlBufPtr buf, size_t len) argument 654 xmlBufLength(const xmlBufPtr buf) argument 673 xmlBufUse(const xmlBufPtr buf) argument 694 xmlBufAvail(const xmlBufPtr buf) argument 712 xmlBufIsEmpty(const xmlBufPtr buf) argument 731 xmlBufResize(xmlBufPtr buf, size_t size) argument 845 xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len) argument 896 xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) argument 966 xmlBufCat(xmlBufPtr buf, const xmlChar *str) argument 986 xmlBufCCat(xmlBufPtr buf, const char *str) argument 1026 xmlBufWriteCHAR(xmlBufPtr buf, const xmlChar *string) argument 1047 xmlBufWriteChar(xmlBufPtr buf, const char *string) argument 1070 xmlBufWriteQuotedString(xmlBufPtr buf, const xmlChar *string) argument 1163 xmlBufBackToBuffer(xmlBufPtr buf) argument 1216 xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer) argument 1242 xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input) argument 1261 xmlBufGetInputBase(xmlBufPtr buf, xmlParserInputPtr input) argument 1292 xmlBufSetInputBaseCur(xmlBufPtr buf, xmlParserInputPtr input, size_t base, size_t cur) argument [all...] |
/external/freetype/src/cff/ |
H A D | cf2read.c | 80 cf2_buf_readByte( CF2_Buffer buf ) 82 if ( buf->ptr < buf->end ) 87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 91 return *(buf->ptr)++ + randomValue(); 93 return *(buf->ptr)++; 98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 106 cf2_buf_isEnd( CF2_Buffer buf ) 108 return (FT_Bool)( buf->ptr >= buf [all...] |
/external/pdfium/third_party/freetype/src/cff/ |
H A D | cf2read.c | 80 cf2_buf_readByte( CF2_Buffer buf ) 82 if ( buf->ptr < buf->end ) 87 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 91 return *(buf->ptr)++ + randomValue(); 93 return *(buf->ptr)++; 98 CF2_SET_ERROR( buf->error, Invalid_Stream_Operation ); 106 cf2_buf_isEnd( CF2_Buffer buf ) 108 return (FT_Bool)( buf->ptr >= buf [all...] |
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_printf_test.cc | 23 char buf[1024]; local 24 uptr len = internal_snprintf(buf, sizeof(buf), 30 EXPECT_EQ(len, strlen(buf)); 35 EXPECT_STREQ(expectedString.c_str(), buf); 39 char buf[] = "123456789"; local 40 uptr len = internal_snprintf(buf, 4, "%s", "abcdef"); // NOLINT 42 EXPECT_STREQ("abc", buf); 43 EXPECT_EQ(buf[3], 0); 44 EXPECT_EQ(buf[ 53 char buf[] = "123456789"; local 66 char buf[] = "123456789"; local 85 char buf[] = "123456789"; local 110 char buf[1024]; local 144 char buf[1024]; local [all...] |
/external/mesa3d/src/gallium/winsys/i915/sw/ |
H A D | i915_sw_buffer.c | 10 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local 12 if (!buf) 15 buf->magic = 0xDEAD1337; 16 buf->type = type; 17 buf->ptr = CALLOC(size, 1); 19 if (!buf->ptr) 22 return (struct i915_winsys_buffer *)buf; 26 FREE(buf); 36 struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer); local 38 if (!buf) 63 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local 73 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local 85 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local 95 struct i915_sw_buffer *buf = i915_sw_buffer(buffer); local [all...] |
/external/lzma/xz-embedded/ |
H A D | xz_config.h | 48 #define memzero(buf, size) memset(buf, 0, size) 76 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument 78 return (uint32_t)buf[0] 79 | ((uint32_t)buf[1] << 8) 80 | ((uint32_t)buf[2] << 16) 81 | ((uint32_t)buf[3] << 24); 86 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument 88 return (uint32_t)(buf[0] << 24) 89 | ((uint32_t)buf[ 96 put_unaligned_le32(uint32_t val, uint8_t *buf) argument 106 put_unaligned_be32(uint32_t val, uint8_t *buf) argument [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
H A D | pb_buffer_malloc.c | 53 malloc_buffer(struct pb_buffer *buf) argument 55 assert(buf); 56 if (!buf) 58 assert(buf->vtbl == &malloc_buffer_vtbl); 59 return (struct malloc_buffer *)buf; 64 malloc_buffer_destroy(struct pb_buffer *buf) argument 66 align_free(malloc_buffer(buf)->data); 67 FREE(buf); 72 malloc_buffer_map(struct pb_buffer *buf, argument 76 return malloc_buffer(buf) 81 malloc_buffer_unmap(struct pb_buffer *buf) argument 88 malloc_buffer_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags) argument 98 malloc_buffer_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence) argument 106 malloc_buffer_get_base_buffer(struct pb_buffer *buf, struct pb_buffer **base_buf, pb_size *offset) argument 130 struct malloc_buffer *buf; local [all...] |