OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:malloc
(Results
26 - 50
of
4430
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/ndk/sources/host-tools/sed-4.2.1/m4/
malloc.m4
0
#
malloc
.m4 serial 9
9
# Test whether '
malloc
' is POSIX compliant (sets errno to ENOMEM when it
10
# fails), and replace
malloc
if it is not.
17
[Define if the '
malloc
' function is POSIX compliant.])
19
AC_LIBOBJ([
malloc
])
25
# Test whether
malloc
, realloc, calloc are POSIX compliant,
29
AC_CACHE_CHECK([whether
malloc
, realloc, calloc are POSIX compliant],
/external/clang/test/Analysis/
malloc-sizeof.c
5
void *
malloc
(size_t size);
13
int *ip1 =
malloc
(sizeof(1));
14
int *ip2 =
malloc
(4 * sizeof(int));
16
long *lp1 =
malloc
(sizeof(short)); // expected-warning {{Result of '
malloc
' is converted to type 'long *', whose pointee type 'long' is incompatible with sizeof operand type 'short'}}
17
long *lp2 =
malloc
(5 * sizeof(double)); // expected-warning {{Result of '
malloc
' is converted to type 'long *', whose pointee type 'long' is incompatible with sizeof operand type 'double'}}
18
long *lp3 =
malloc
(5 * sizeof(char) + 2); // expected-warning {{Result of '
malloc
' is converted to type 'long *', whose pointee type 'long' is incompatible with sizeof operand type 'char'}}
free.c
1
// RUN: %clang_cc1 -analyze -analyzer-store=region -analyzer-checker=core,unix.
Malloc
-fblocks -verify %s
7
free(a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by
malloc
()}}
12
free(&a); // expected-warning {{Argument to free() is the address of the local variable 'a', which is not memory allocated by
malloc
()}}
17
free(a); // expected-warning {{Argument to free() is the address of the static variable 'a', which is not memory allocated by
malloc
()}}
30
free((void*)1000); // expected-warning {{Argument to free() is a constant address (1000), which is not memory allocated by
malloc
()}}
44
free(&&label); // expected-warning {{Argument to free() is the address of the label 'label', which is not memory allocated by
malloc
()}}
48
free((void*)&t10); // expected-warning {{Argument to free() is the address of the function 't10', which is not memory allocated by
malloc
()}}
53
free(p); // expected-warning {{Argument to free() was allocated by alloca(), not
malloc
()}}
57
free(^{return;}); // expected-warning {{Argument to free() is a block, which is not memory allocated by
malloc
()}}
61
free(&a); // expected-warning {{Argument to free() is the address of the parameter 'a', which is not memory allocated by
malloc
()}}
[
all
...]
redefined_system.c
6
char
malloc
();
15
return memmove() +
malloc
() + system() + stdin() + memccpy() + free() + strdup() + atoi();
malloc.m
1
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.
Malloc
-analyzer-store=region -verify -Wno-objc-root-class %s
6
void *
malloc
(size_t);
9
// RDar10579586 - Test use of
malloc
() with Objective-C string literal as a
10
// test condition. Not really a
malloc
() issue, but this also exercises
11
// the check that
malloc
() returns uninitialized memory.
26
if ((buffer =
malloc
(sizeof(struct rdar0579586_str))) == ((void*)0))
/external/flac/include/share/
alloc.h
22
//
malloc
(n floor 1)
26
return
malloc
(n);
29
//
malloc
(n1 * n2) then memset to zero
36
//
malloc
(n1 + n2)
42
return n == ns ?
malloc
(ns) : NULL;
45
//
malloc
(n1 * n2)
51
return n == ns ?
malloc
(ns) : NULL;
54
//
malloc
(n1 * (n2 + n3))
60
return n == ns ?
malloc
(ns) : NULL;
/external/valgrind/main/memcheck/tests/
execve1.stderr.exp-kfail
3
Address 0x........ is not stack'd,
malloc
'd or (recently) free'd
7
Address 0x........ is not stack'd,
malloc
'd or (recently) free'd
11
Address 0x........ is not stack'd,
malloc
'd or (recently) free'd
fprw.c
11
double* dp =
malloc
(sizeof(double));
12
float* fp =
malloc
(sizeof(float));
23
ip =
malloc
(sizeof(int));
mismatches.cpp
5
int* fpointer = (int*)
malloc
(10);
7
fpointer = (int*)
malloc
(10);
9
fpointer = (int*)
malloc
(10);
badaddrvalue.c
7
char* aa =
malloc
(8);
doublefree.c
8
void* p =
malloc
(177);
trivialleak.c
8
leak = (void*)
malloc
( 1 );
malloc3.stdout.exp
0
malloc
(0) = 0x........
2
malloc
(-1) = 0x........
malloc_usable.c
2
#include "tests/
malloc
.h"
11
int* x =
malloc
(99);
big_blocks_freed_list.c
18
semi_big =
malloc
(900000);
19
big =
malloc
(1000001);
27
small =
malloc
(10000);
32
with the
malloc
of small above. */
39
big =
malloc
(1000001);
51
other_small =
malloc
(10000);
/bionic/libstdc++/src/
new.cpp
8
void* p =
malloc
(size);
17
void* p =
malloc
(size);
36
return
malloc
(size);
41
return
malloc
(size);
/external/compiler-rt/lib/asan/output_tests/
use-after-free.c
3
char *x = (char*)
malloc
(10 * sizeof(char));
/external/valgrind/main/massif/tests/
alloc-fns.c
3
void a4(int n) {
malloc
(n); }
8
void b4(int n) {
malloc
(n); }
13
void c4(int n) {
malloc
(n); }
18
void d4(int n) {
malloc
(n); }
culling1.c
7
malloc
(16); // divisible by 16 -- no slop
culling2.c
7
malloc
(400*i); // Divisible by 16 -- no slop.
one.c
8
malloc
(1);
filter_stderr
11
perl -n -e 'print if !/^Massif: (
malloc
|calloc|realloc|memalign)_common$/' |
14
perl -n -e 'print if !/^Massif: malloc_zone_(
malloc
|calloc|realloc|memalign|valloc)$/'
peak.c
8
p =
malloc
(1600); // With --peak-inaccuracy=1000, the first 10 of
9
p =
malloc
(16); // 'free' calls result in peaks, but after that,
/external/valgrind/tsan/offline_tests/
simple_race_1.tst
22
MALLOC
0 cdeffedc abcd0 ff
24
#
Malloc
some more (unrelated)
25
MALLOC
0 cdeffedc ccc ff
26
MALLOC
0 cdeffedc cccccccc ff
/external/clang/test/Sema/
implicit-builtin-redecl.c
4
static void*
malloc
(int);
5
static void*
malloc
(int size) {
function
Completed in 210 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>