Searched defs:buff (Results 1 - 25 of 115) sorted by relevance

12345

/external/compiler-rt/test/asan/TestCases/Windows/
H A Ddll_intercept_memchr.cc9 char buff[6] = "Hello"; local
11 memchr(buff, 'z', 7);
19 // CHECK: 'buff' <== Memory access at offset {{.*}} overflows this variable
H A Ddll_intercept_memset.cc14 char buff[5] = "aaaa"; local
16 memset(buff, 'b', 5);
17 if (buff[2] != 'b')
23 memset(buff, 'c', 6);
30 // CHECK: 'buff' <== Memory access at offset {{.*}} overflows this variable
/external/clang/test/CodeGen/
H A D2003-11-26-PointerShift.c3 unsigned long do_csum(const unsigned char *buff, int len, unsigned long result) { argument
4 if (2 & (unsigned long) buff) result += 1;
/external/libmtp/examples/
H A Dformat.c29 char buff[2]; local
33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) {
41 if (buff[0] == 'y') {
43 } else if (buff[0] == 'n') {
H A Dreset.c29 char buff[2]; local
33 if ( fgets(buff, sizeof(buff), stdin) == NULL ) {
41 if (buff[0] == 'y') {
43 } else if (buff[0] == 'n') {
/external/valgrind/none/tests/
H A Dres_search.c12 unsigned char buff[8000]; local
14 if(-1 == res_search(dn, 1, 1, buff, 8000))
51 unsigned char buff[8000]; local
53 if(-1 == res_search(argv[1], 1, 1, buff, 8000))
/external/valgrind/none/tests/s390x/
H A Dtr.c8 uint8_t buff[40]; variable
24 tr(tran_table, buff, len);
27 printf("%c", buff[i]);
35 run_test((char *)&touppercase, &buff, 0);
36 run_test((char *)&touppercase, &buff, 0);
39 memset(buff, 'a', 1);
40 run_test((char *)&touppercase, &buff, 1);
42 memcpy(buff, "abcdefgh", 8);
43 run_test((char *)&touppercase, &buff, 3);
44 run_test((char *)&touppercase, &buff,
[all...]
H A Dtre.c17 uint8_t buff[40]; variable
61 printf("%c", buff[i]);
72 run_test((char *)&touppercase, &buff, 0, 0x0);
73 run_test((char *)&touppercase, &buff, 0, 'b');
76 memset(buff, 'a', 1);
77 run_test((char *)&touppercase, &buff, 1, 'a'); //cc = 1
78 run_test((char *)&touppercase, &buff, 1, 'b');
80 memcpy(buff, "abcdefgh", 8);
81 run_test((char *)&touppercase, &buff, 3, 'a'); //cc = 1
82 run_test((char *)&touppercase, &buff,
[all...]
H A Dcksm.c19 cksm_by_insn(const uint32_t *buff, uint64_t len, uint32_t sum) argument
21 const uint32_t *init_addr = buff;
26 register uint64_t reg2 asm("2") = (uint64_t) buff;
60 cksm_by_hand(const uint32_t *buff, uint64_t len, uint32_t sum) argument
71 v64 += buff[n];
74 sum = sum + buff[n] + 1;
76 sum = sum + buff[n];
87 final = buff[n] & 0xFF000000;
91 final = buff[n] & 0xFFFF0000;
95 final = buff[
167 run_test(const char *name, const uint32_t *buff, uint64_t len, uint32_t sum, uint32_t expected_sum) argument
[all...]
H A Dcu24.c51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
131 run_test(buff, sizeof buff, NULL, 1);
132 run_test(buff, sizeof buff, pattern1, 1);
133 run_test(buff, sizeof buff, pattern2, 1);
134 run_test(buff, sizeof buff, pattern2, 2);
135 run_test(buff, sizeo
[all...]
H A Dcu24_1.c51 uint32_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
131 run_test(buff, sizeof buff, NULL, 1);
132 run_test(buff, sizeof buff, pattern1, 1);
133 run_test(buff, sizeof buff, pattern2, 1);
134 run_test(buff, sizeof buff, pattern2, 2);
135 run_test(buff, sizeo
[all...]
H A Dcu42.c52 uint16_t buff[1000]; /* Large so we con'don't have to worry about it */ variable
130 run_test(buff, sizeof buff, NULL, 0);
131 run_test(buff, sizeof buff, NULL, 1);
132 run_test(buff, sizeof buff, NULL, 2);
133 run_test(buff, sizeof buff, NULL, 3);
134 run_test(buff, sizeo
[all...]
/external/libxml2/doc/examples/
H A Dtree2.c31 char buff[256]; local
84 sprintf(buff, "node%d", i);
85 node = xmlNewChild(root_node, NULL, BAD_CAST buff, NULL);
87 sprintf(buff, "node%d%d", i, j);
88 node1 = xmlNewChild(node, NULL, BAD_CAST buff, NULL);
/external/selinux/libsepol/cil/src/
H A Dcil_log.c55 char buff[MAX_LOG_SIZE]; local
56 vsnprintf(buff, MAX_LOG_SIZE, msg, args);
57 (*cil_log_handler)(cil_log_level, buff);
/external/libnfc-nci/src/static-lib-adapt/
H A DProtoDispBluetoothHci.c60 char buff[200]; local
62 sprintf (buff, "%40s : %u (0x%02x): %s", p_descr, *p_data, *p_data, p_ext);
64 ScrLog (HCI_GEN_TRACE, "%s", buff);
/external/bzip2/
H A Ddlltest.c116 char buff[0x1000]; local
137 while((len=BZ2_bzread(BZ2fp_r,buff,0x1000))>0){
138 fwrite(buff,1,len,fp_w);
164 while((len=fread(buff,1,0x1000,fp_r))>0){
165 BZ2_bzwrite(BZ2fp_w,buff,len);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
H A DRobolectricTest.java35 private ByteArrayOutputStream buff; field in class:RobolectricTest
44 buff = new ByteArrayOutputStream();
45 PrintStream testOut = new PrintStream(buff);
64 String output = buff.toString();
66 buff.reset();
70 output = buff.toString();
78 String output = buff.toString();
/external/tagsoup/src/org/ccil/cowan/tagsoup/
H A DScanHandler.java29 public void adup(char[] buff, int offset, int length) throws SAXException; argument
35 public void aname(char[] buff, int offset, int length) throws SAXException; argument
41 public void aval(char[] buff, int offset, int length) throws SAXException; argument
46 public void cdsect(char[] buff, int offset, int length) throws SAXException; argument
52 public void decl(char[] buff, int offset, int length) throws SAXException; argument
58 public void entity(char[] buff, int offset, int length) throws SAXException; argument
64 public void eof(char[] buff, int offset, int length) throws SAXException; argument
70 public void etag(char[] buff, int offset, int length) throws SAXException; argument
76 public void gi(char[] buff, int offset, int length) throws SAXException; argument
82 public void pcdata(char[] buff, in argument
88 pi(char[] buff, int offset, int length) argument
94 pitarget(char[] buff, int offset, int length) argument
100 stagc(char[] buff, int offset, int length) argument
106 stage(char[] buff, int offset, int length) argument
112 cmnt(char[] buff, int offset, int length) argument
[all...]
/external/toybox/toys/posix/
H A Dcut.c127 char *buff, *pfield = 0, *delimiter = TT.delim; local
138 if (!(buff = get_line(fd))) break;
141 if (strrchr(buff, (int)delimiter[0]) == NULL) {
143 if (!(toys.optflags & FLAG_s)) xputs(buff);
147 pfield = xzalloc(strlen(buff) + 1);
151 while (cpos < TT.nelem && buff) {
158 while (buff) {
161 field = strsep(&buff, delimiter);
175 if ((temp_node->end < 0) || !buff) break;
188 char *buff; local
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-memset-bad-sizeof.cpp141 char buff[80]; local
143 strncpy(buff, BAR, sizeof(BAR)); // \
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libcdep.cc31 char *buff; local
32 const char *ret = ExtractToken(str, delims, &buff);
33 if (buff != 0) {
34 *result = (int)internal_atoll(buff);
36 InternalFree(buff);
41 char *buff; local
42 const char *ret = ExtractToken(str, delims, &buff);
43 if (buff != 0) {
44 *result = (uptr)internal_atoll(buff);
46 InternalFree(buff);
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_common_test.cc98 char buff[100]; local
99 EXPECT_TRUE(SanitizerGetThreadName(buff, sizeof(buff) - 1));
100 EXPECT_EQ(0, internal_strcmp(buff, names[i]));
/external/libedit/src/
H A Dchartype.c210 static Char *buff = NULL; local
218 if (!buff) {
220 buff = el_malloc(buffsize * sizeof(*buff));
222 dst = buff;
224 used = ct_visual_char(dst, buffsize - (size_t)(dst - buff), *s);
226 used = dst - buff;
228 p = el_realloc(buff, buffsize * sizeof(*buff));
231 buff
[all...]
/external/squashfs-tools/kernel/fs/squashfs/
H A Dcache.c305 void *buff = entry->data[offset / PAGE_CACHE_SIZE] local
311 memcpy(buffer, buff, remaining);
316 memcpy(buffer, buff, bytes);
/external/toybox/toys/other/
H A Dlogin.c62 void read_user(char * buff, int size) argument
76 *buff = c;
77 } while (isblank(*buff));
79 if (*buff != '\n') if(!fgets(&buff[1], HOSTNAME_SIZE-1, stdin)) _exit(1);
81 while(i<HOSTNAME_SIZE-1 && isgraph(buff[i])) i++;
82 buff[i] = 0;

Completed in 679 milliseconds

12345