HomeSort by relevance Sort by last modified time
    Searched refs:malloc (Results 126 - 150 of 5328) sorted by null

1 2 3 4 56 7 8 91011>>

  /device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
charptr.c 34 #include <malloc.h>
55 *a = (char *) malloc(strlen(text)+1); /* MR6 */
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
charptr.c 34 #include <malloc.h>
55 *a = (char *) malloc(strlen(text)+1); /* MR6 */
  /external/clang/test/Analysis/
Malloc+MismatchedDeallocator+NewDelete.cpp 1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,unix.MismatchedDeallocator,cplusplus.NewDelete -std=c++11 -verify %s
2 // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,unix.MismatchedDeallocator,cplusplus.NewDelete,cplusplus.NewDeleteLeaks -DLEAKS -std=c++11 -verify %s
4 #include "Inputs/system-header-simulator-for-malloc.h"
7 // Check that unix.Malloc catches all types of bugs.
10 int *p = (int *)malloc(sizeof(int));
16 int *p = (int *)malloc(sizeof(int));
20 int *p = (int *)malloc(sizeof(int));
27 free(&i); // expected-warning{{Argument to free() is the address of the local variable 'i', which is not memory allocated by malloc()}}
31 int *p = (int *)malloc(sizeof(int));
32 free(++p); // expected-warning{{Argument to free() is offset by 4 bytes from the start of memory allocated by malloc()}}
    [all...]
coverage.c 1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -analyzer-store=region -analyzer-max-loop 4 -verify %s
5 void *malloc(size_t);
35 char *m = (char*)malloc(12);
41 char *m = (char*)malloc(12);
48 char *m = (char*)malloc(12);
54 char *m = (char*)malloc(12);
61 char *m = (char*)malloc(12); // no-warning
68 char *m = (char*)malloc(12);
80 char *m = (char*)malloc(12);
cxx-method-names.cpp 7 void malloc(void *); // taint checker, malloc checker
8 void free(); // malloc checker, keychain checker
17 E.malloc(0);
malloc.cpp 1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.deadcode.UnreachableCode,alpha.core.CastSize,unix.Malloc -analyzer-store=region -verify %s
4 void *malloc(size_t);
11 malloc(4);
20 return malloc(10);
29 char *x = (char*)malloc(12);
35 char *x = (char*)malloc(12);
45 char *x = (char*)malloc(12);
64 v.push_back(malloc(4));
73 result.a = malloc(4);
78 // Malloc checker used to report leaks for the following two test cases
    [all...]
  /external/compiler-rt/test/asan/TestCases/Linux/
interception_malloc_test.cc 12 extern "C" void *malloc(size_t size) { function
13 write(2, "malloc call\n", sizeof("malloc call\n") - 1);
18 char *x = (char*)malloc(10 * sizeof(char));
21 // CHECK: malloc call
  /external/compiler-rt/test/lsan/TestCases/
do_leak_check_override.cc 15 p = malloc(1337);
29 void *p = malloc(666);
recoverable_leak_check.cc 16 p = malloc(23);
20 fprintf(stderr, "Test alloc: %p.\n", malloc(1337));
  /external/compiler-rt/test/scudo/
alignment.cpp 8 #include <malloc.h>
17 void *p = malloc(1U << 16);
  /external/compiler-rt/test/tsan/Linux/
user_malloc.cc 8 extern "C" void *malloc(unsigned long size) { function
11 fprintf(stderr, "user malloc\n");
20 volatile char *p = (char*)malloc(10);
25 // CHECK: user malloc
  /external/valgrind/memcheck/tests/
custom-overlap.c 2 // with normal malloc() blocks in leak-checking -- if it happens, we ignore
3 // the malloc() block during the leak check.
13 // the malloc block.
14 x = malloc(1000);
21 // start of the malloc block.
22 x = malloc(1000);
malloc1.c 16 char* p = malloc(10);
21 p = malloc(10);
memcmptest.c 11 s1 = malloc(10); strcpy(s1,"fooble");
12 s2 = malloc(10); strcpy(s2,"fooble");
big_blocks_freed_list.c 18 semi_big = malloc (900000);
19 big = malloc (1000015);
27 small = malloc (10000);
32 with the malloc of small above. */
39 big = malloc (1000015);
51 other_small = malloc(10000);
error_counts.c 43 leaked = malloc(77);
46 dubious = malloc(88);
49 reachable = malloc(99);
metadata.c 10 int* a = malloc(10 * sizeof(int));
11 int* b = malloc(10 * sizeof(int));
12 int* v = malloc(10 * sizeof(int));
  /prebuilts/go/darwin-x86/misc/cgo/test/
issue6390.go 13 p1 := C.malloc(1024)
15 t.Fatalf("C.malloc(1024) returned nil")
17 p2 := C.malloc(0)
19 t.Fatalf("C.malloc(0) returned nil")
  /prebuilts/go/linux-x86/misc/cgo/test/
issue6390.go 13 p1 := C.malloc(1024)
15 t.Fatalf("C.malloc(1024) returned nil")
17 p2 := C.malloc(0)
19 t.Fatalf("C.malloc(0) returned nil")
  /system/chre/platform/linux/
memory.cc 24 return malloc(size);
28 return malloc(size);
  /toolchain/binutils/binutils-2.27/libiberty/
calloc.c 8 Uses @code{malloc} to allocate storage for @var{nelem} objects of
19 PTR malloc (size_t);
30 ptr = malloc (nelem * elsize);
strdup.c 6 @code{malloc}, or @code{NULL} if insufficient memory was available.
16 extern PTR malloc (size_t);
23 char *result = (char*) malloc (len);
  /external/clang/test/Sema/
implicit-builtin-decl.c 5 int *ptr = malloc(sizeof(int) * 10); // expected-warning{{implicitly declaring library function 'malloc' with type}} \
6 // expected-note{{include the header <stdlib.h> or explicitly provide a declaration for 'malloc'}} \
7 // expected-note{{'malloc' is a builtin with type 'void *}}
16 void g(int malloc) { // okay: these aren't functions
21 int malloc(int); // expected-warning{{incompatible redeclaration of library function 'malloc'}}
  /external/valgrind/massif/tests/
ignored.c 8 int* ignored_x1 = malloc(400);
9 int* ignored_x2 = malloc(400);
31 x = malloc(400);
  /toolchain/binutils/binutils-2.27/ld/testsuite/ld-elf/
new.cc 5 extern "C" void *malloc (std::size_t);
13 /* malloc (0) is unpredictable; avoid it. */
16 p = (void *) malloc (sz);
25 /* malloc (0) is unpredictable; avoid it. */
28 p = (void *) malloc (sz);

Completed in 793 milliseconds

1 2 3 4 56 7 8 91011>>