/external/compiler-rt/test/asan/TestCases/Windows/ |
use_after_realloc.cc | 7 char *buffer = (char*)realloc(0, 32), 9 buffer = (char*)realloc(buffer, 64); 17 // CHECK-NEXT: {{#0 .* realloc }} 20 // CHECK-NEXT: {{#0 .* realloc }}
|
realloc_left_oob.cc | 7 char *buffer = (char*)realloc(0, 42); 14 // CHECK-NEXT: {{#0 .* realloc }}
|
realloc_right_oob.cc | 7 char *buffer = (char*)realloc(0, 42); 14 // CHECK-NEXT: {{#0 .* realloc }}
|
realloc_uaf.cc | 7 char *buffer = (char*)realloc(0, 42); 18 // CHECK-NEXT: {{#0 .* realloc }}
|
allocators_sanity.cc | 13 p = (int*)realloc(p, 2048 * sizeof(int));
|
dll_allocators_sanity.cc | 15 p = (int*)realloc(p, 2048 * sizeof(int));
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
wrapper.c | 29 void *ret = realloc(ptr, size); 31 ret = realloc(ptr, 1); 34 ret = realloc(ptr, size); 36 ret = realloc(ptr, 1); 38 die("Out of memory, realloc failed");
|
/external/compiler-rt/SDKs/darwin/usr/include/ |
stdlib.h | 30 void *realloc(void *, size_t);
|
/external/bison/lib/ |
realloc.c | 0 /* realloc() function that is glibc compatible. 24 /* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */ 25 #ifdef realloc 27 /* Whereas the gnulib module 'realloc-gnu' defines HAVE_REALLOC_GNU. */ 56 /* In theory realloc might fail, so don't rely on it to free. */ 71 result = realloc (p, n);
|
spawn_faction_init.c | 35 void *newmem = realloc (file_actions->_actions,
|
/external/compiler-rt/test/asan/TestCases/ |
free_hook_realloc.cc | 1 // Check that free hook doesn't conflict with Realloc. 27 int *y = (int*)realloc(x, 200);
|
/external/compiler-rt/test/msan/ |
allocator_returns_null.cc | 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge. 13 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH 14 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rNULL 15 // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH 16 // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrNULL 45 if (!strcmp(argv[1], "realloc")) { 46 fprintf(stderr, "realloc:\n"); 47 x = (char*)realloc(0, size); 49 if (!strcmp(argv[1], "realloc-after-malloc")) { 50 fprintf(stderr, "realloc-after-malloc:\n") [all...] |
/external/compiler-rt/test/tsan/ |
allocator_returns_null.cc | 1 // Test the behavior of malloc/calloc/realloc when the allocation size is huge. 10 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc 2>&1 | FileCheck %s --check-prefix=CHECK-rCRASH 11 // RUN: TSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH 40 if (!strcmp(argv[1], "realloc")) { 41 fprintf(stderr, "realloc:\n"); 42 x = (char*)realloc(0, size); 44 if (!strcmp(argv[1], "realloc-after-malloc")) { 45 fprintf(stderr, "realloc-after-malloc:\n"); 48 x = (char*)realloc(t, size); 60 // CHECK-rCRASH: realloc [all...] |
/external/chromium_org/third_party/icu/source/samples/layout/ |
arraymem.h | 20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/icu/icu4c/source/samples/layout/ |
arraymem.h | 20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/llvm/lib/Support/ |
SmallVector.cpp | 34 NewElts = realloc(this->BeginX, NewCapacityInBytes);
|
/external/clang/test/Analysis/ |
malloc-sizeof.c | 7 void *realloc(void *ptr, size_t size); 27 struct A *ap6 = realloc(ap5, sizeof(struct A)); 28 struct A *ap7 = realloc(ap5, sizeof(struct B)); // expected-warning {{Result of 'realloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'struct B'}}
|
malloc-annotations.c | 5 void *realloc(void *ptr, size_t size); 40 realloc(p,0); 41 realloc(p,0); // expected-warning{{Attempt to free released memory}} 46 int *q = realloc(p,0); // no-warning 167 q = realloc(q, 20); 184 realloc(p,0); 206 realloc(x,0);
|
/bionic/tests/ |
malloc_test.cpp | 112 // Memalign and then realloc the pointer a couple of times. 120 ptr = (char*)realloc(ptr, 200); 129 ptr = (char*)realloc(ptr, 300); 137 ptr = (char*)realloc(ptr, 250); 148 // Realloc to a larger size, malloc is used for the original allocation. 154 ptr = (char *)realloc(ptr, 200); 164 // Realloc to a smaller size, malloc is used for the original allocation. 170 ptr = (char *)realloc(ptr, 100); 186 ptr = (char *)realloc(ptr, 100); 193 ptr = (char*)realloc(ptr, 50) [all...] |
/external/chromium_org/content/browser/renderer_host/media/ |
video_capture_buffer_pool.cc | 122 BufferMap::iterator realloc = buffers_.end(); local 133 realloc = it; 141 if (realloc == buffers_.end()) { 145 *buffer_id_to_drop = realloc->first; 146 delete realloc->second; 147 buffers_.erase(realloc);
|
/external/chromium_org/third_party/icu/source/test/letest/ |
letest.h | 33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/clang/test/Sema/ |
implicit-builtin-decl.c | 41 void * realloc(void *p, int size) { // expected-warning{{incompatible redeclaration of library function 'realloc'}} \ function 42 // expected-note{{'realloc' is a builtin with type 'void *(void *,}}
|
/external/compiler-rt/SDKs/linux/usr/include/ |
stdlib.h | 33 void *realloc(void *, size_t) __attribute__((__nothrow__)) __attribute((__malloc__))
|
/external/icu/icu4c/source/test/letest/ |
letest.h | 33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/oprofile/libutil/ |
op_libiberty.h | 46 realloc type functions are not suitable for attribute malloc since 68 #define xrealloc(p,s) realloc(p,s)
|