Lines Matching refs:malloc
5 void *malloc(size_t size);
14 int *ip1 = malloc(sizeof(1)); in foo()
15 int *ip2 = malloc(4 * sizeof(int)); in foo()
17 …long *lp1 = malloc(sizeof(short)); // expected-warning {{Result of 'malloc' is converted to a poin… in foo()
18 …long *lp2 = malloc(5 * sizeof(double)); // expected-warning {{Result of 'malloc' is converted to a… in foo()
19 char *cp3 = malloc(5 * sizeof(char) + 2); // no warning in foo()
20 unsigned char *buf = malloc(readSize + sizeof(unsignedInt)); // no warning in foo()
33 const char **x = (const char **)malloc(1 * sizeof(char *)); // no-warning in ignore_const()
34 …const char ***y = (const char ***)malloc(1 * sizeof(char *)); // expected-warning {{Result of 'mal… in ignore_const()
41 int *table = malloc(sizeof sTable); in mallocArraySize()
42 int *table1 = malloc(sizeof nestedTable); in mallocArraySize()
43 int (*table2)[2] = malloc(sizeof nestedTable); in mallocArraySize()
44 int (*table3)[10][2] = malloc(sizeof nestedTable); in mallocArraySize()
50 …int *table = malloc(sizeof sTable); // expected-warning {{Result of 'malloc' is converted to a poi… in mallocWrongArraySize()