/external/clang/test/CodeGen/ |
clear_cache.c | 3 char buffer[32] = "This is a largely unused buffer"; variable 9 __builtin___clear_cache(buffer, buffer+32);
|
/external/compiler-rt/test/asan/TestCases/Windows/ |
operator_array_new_left_oob.cc | 5 char *buffer = new char[42]; local 6 buffer[-1] = 42; 7 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 15 delete [] buffer;
|
calloc_left_oob.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); local 8 buffer[-1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
calloc_right_oob.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); local 8 buffer[42] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
calloc_uaf.cc | 7 int *buffer = (int*)calloc(42, sizeof(int)); local 8 free(buffer); 9 buffer[0] = 42;
|
dll_operator_array_new_left_oob.cc | 7 char *buffer = new char[42]; local 8 buffer[-1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 23 delete [] buffer;
|
malloc_left_oob.cc | 7 char *buffer = (char*)malloc(42); local 8 buffer[-1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
malloc_right_oob.cc | 7 char *buffer = (char*)malloc(42); local 8 buffer[42] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
malloc_uaf.cc | 7 char *buffer = (char*)malloc(42); local 8 free(buffer); 9 buffer[0] = 42;
|
operator_array_new_right_oob.cc | 7 char *buffer = new char[42]; local 8 buffer[42] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 delete [] buffer;
|
operator_array_new_uaf.cc | 7 char *buffer = new char[42]; local 8 delete [] buffer; 9 buffer[0] = 42;
|
operator_new_left_oob.cc | 7 char *buffer = new char; local 8 buffer[-1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 delete buffer;
|
operator_new_right_oob.cc | 7 char *buffer = new char; local 8 buffer[1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 delete buffer;
|
operator_new_uaf.cc | 7 char *buffer = new char; local 8 delete buffer; 9 *buffer = 42;
|
realloc_left_oob.cc | 7 char *buffer = (char*)realloc(0, 42); local 8 buffer[-1] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
realloc_right_oob.cc | 7 char *buffer = (char*)realloc(0, 42); local 8 buffer[42] = 42; 9 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 16 free(buffer);
|
realloc_uaf.cc | 7 char *buffer = (char*)realloc(0, 42); local 8 free(buffer); 9 buffer[0] = 42;
|
use_after_realloc.cc | 7 char *buffer = (char*)realloc(0, 32), local 8 *stale = buffer; 9 buffer = (char*)realloc(buffer, 64); 22 free(buffer);
|
dll_malloc_left_oob.cc | 8 char *buffer = (char*)malloc(42); local 9 buffer[-1] = 42; 10 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 21 free(buffer);
|
dll_malloc_uaf.cc | 9 int *buffer = (int*)malloc(42); local 10 free(buffer); 11 buffer[0] = 42;
|
operator_array_new_with_dtor_left_oob.cc | 10 C *buffer = new C[42]; local 11 buffer[-2].x = 42; 12 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 23 delete [] buffer;
|
/external/apache-harmony/luni/src/test/resources/net.resources/HTTP/cgi-bin/ |
test.pl | 3 read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); 4 print $buffer;
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
cpuinfo.c | 52 char *buffer; local 54 buffer = (char *) malloc(MAX_STRING); 55 if (!buffer) 58 buffer[0] = 0; 63 strcat(buffer, "x86"); 68 strcat(buffer, (cpu_has_mmxext) ? "/MMX+" : "/MMX"); 73 strcat(buffer, (cpu_has_3dnowext) ? "/3DNow!+" : "/3DNow!"); 78 strcat(buffer, (cpu_has_xmm2) ? "/SSE2" : "/SSE"); 84 strcat(buffer, "SPARC"); 88 assert(strlen(buffer) < MAX_STRING) [all...] |
/external/mesa3d/src/mesa/main/ |
cpuinfo.c | 52 char *buffer; local 54 buffer = (char *) malloc(MAX_STRING); 55 if (!buffer) 58 buffer[0] = 0; 63 strcat(buffer, "x86"); 68 strcat(buffer, (cpu_has_mmxext) ? "/MMX+" : "/MMX"); 73 strcat(buffer, (cpu_has_3dnowext) ? "/3DNow!+" : "/3DNow!"); 78 strcat(buffer, (cpu_has_xmm2) ? "/SSE2" : "/SSE"); 84 strcat(buffer, "SPARC"); 88 assert(strlen(buffer) < MAX_STRING) [all...] |
/external/qemu/android/utils/ |
bufprint_unittest.cpp | 17 char buffer[128], *p = buffer, *end = p + sizeof(buffer); local 20 EXPECT_EQ(buffer + 7, p); 21 EXPECT_STREQ("foo/bar", buffer); 25 char buffer[4], *p, *end = buffer + sizeof(buffer); local 26 p = bufprint(buffer, end, "foobar"); 27 EXPECT_EQ(buffer + 4, p) [all...] |