HomeSort by relevance Sort by last modified time
    Searched refs:buf (Results 1 - 25 of 9466) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/main/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/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
getwd.c 8 char* getwd(char* buf) {
9 return ki_getwd(buf);
  /external/chromium_org/third_party/mesa/src/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/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...]
  /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
    [all...]
inttypes_test.cpp 23 char buf[512]; local
28 snprintf(buf, sizeof(buf), "%08" PRIdPTR, i);
29 snprintf(buf, sizeof(buf), "%08" PRIiPTR, i);
30 snprintf(buf, sizeof(buf), "%08" PRIoPTR, i);
31 snprintf(buf, sizeof(buf), "%08" PRIuPTR, u);
32 snprintf(buf, sizeof(buf), "%08" PRIxPTR, u)
    [all...]
  /external/valgrind/main/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/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
BaseDexBuffer.java 39 @Nonnull /* package private */ final byte[] buf; field in class:BaseDexBuffer
41 public BaseDexBuffer(@Nonnull byte[] buf) {
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[offset+3]) << 24)
    [all...]
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_printf_test.cc 23 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[3], 0)
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/
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");
  /hardware/invensense/60xx/mlsdk/platform/linux/
log_printf_linux.c 35 int _MLWriteLog (const char * buf, int buflen)
37 return fputs(buf, stdout);
  /ndk/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");
  /external/chromium_org/third_party/libjingle/source/talk/base/
byteorder_unittest.cc 37 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[0])
80 uint8 buf[8]; local
    [all...]
  /external/chromium_org/third_party/webrtc/base/
byteorder_unittest.cc 20 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[0])
63 uint8 buf[8]; local
    [all...]
  /external/compiler-rt/test/msan/Linux/
syscalls.cc 21 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, sizeof(buf))
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
FloatBufferTest.java 37 protected FloatBuffer buf; field in class:FloatBufferTest
40 buf = FloatBuffer.allocate(BUFFER_LENGTH);
41 loadTestData1(buf);
42 baseBuf = buf;
46 buf = null;
51 float array[] = buf.array();
52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity());
54 loadTestData1(array, buf.arrayOffset(), buf.capacity())
    [all...]
LongBufferTest.java 37 protected LongBuffer buf; field in class:LongBufferTest
40 buf = LongBuffer.allocate(BUFFER_LENGTH);
41 loadTestData1(buf);
42 baseBuf = buf;
46 buf = null;
51 long array[] = buf.array();
52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity());
54 loadTestData1(array, buf.arrayOffset(), buf.capacity())
    [all...]
IntBufferTest.java 37 protected IntBuffer buf; field in class:IntBufferTest
40 buf = IntBuffer.allocate(BUFFER_LENGTH);
41 loadTestData1(buf);
42 baseBuf = buf;
46 buf = null;
51 int array[] = buf.array();
52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity());
54 loadTestData1(array, buf.arrayOffset(), buf.capacity())
    [all...]
ShortBufferTest.java 36 protected ShortBuffer buf; field in class:ShortBufferTest
39 buf = ShortBuffer.allocate(BUFFER_LENGTH);
40 loadTestData1(buf);
41 baseBuf = buf;
45 buf = null;
50 short array[] = buf.array();
51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity());
53 loadTestData1(array, buf.arrayOffset(), buf.capacity())
    [all...]
DoubleBufferTest.java 36 protected DoubleBuffer buf; field in class:DoubleBufferTest
39 buf = DoubleBuffer.allocate(BUFFER_LENGTH);
40 loadTestData1(buf);
41 baseBuf = buf;
45 buf = null;
75 double array[] = buf.array();
76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity());
78 loadTestData1(array, buf.arrayOffset(), buf.capacity())
    [all...]
  /external/chromium_org/content/browser/loader/
resource_buffer_unittest.cc 11 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->Allocate(&size)
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...]
  /bionic/libc/upstream-openbsd/lib/libc/stdio/
setbuf.c 38 setbuf(FILE *fp, char *buf)
40 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);

Completed in 3128 milliseconds

1 2 3 4 5 6 7 8 91011>>