Home | History | Annotate | Download | only in Analysis

Lines Matching full:allocation

82   char* foo = malloc(0); // expected-warning{{Call to 'malloc' has an allocation size of 0 bytes}}
94 char *foo = calloc(0, 42); // expected-warning{{Call to 'calloc' has an allocation size of 0 bytes}}
100 char *foo = calloc(42, 0); // expected-warning{{Call to 'calloc' has an allocation size of 0 bytes}}
112 char *foo = realloc(ptr, 0); // expected-warning{{Call to 'realloc' has an allocation size of 0 bytes}}
118 char *foo = reallocf(ptr, 0); // expected-warning{{Call to 'reallocf' has an allocation size of 0 bytes}}
136 char *foo = alloca(0); // expected-warning{{Call to 'alloca' has an allocation size of 0 bytes}}
148 char *foo2 = __builtin_alloca(0); // expected-warning{{Call to 'alloca' has an allocation size of 0 bytes}}
160 char *foo = valloc(0); // expected-warning{{Call to 'valloc' has an allocation size of 0 bytes}}
709 // CHECK-NEXT: <string>Call to &apos;malloc&apos; has an allocation size of 0 bytes</string>
711 // CHECK-NEXT: <string>Call to &apos;malloc&apos; has an allocation size of 0 bytes</string>
714 // CHECK-NEXT: <key>description</key><string>Call to &apos;malloc&apos; has an allocation size of 0 bytes</string>
716 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
789 // CHECK-NEXT: <string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
791 // CHECK-NEXT: <string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
794 // CHECK-NEXT: <key>description</key><string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
796 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
869 // CHECK-NEXT: <string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
871 // CHECK-NEXT: <string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
874 // CHECK-NEXT: <key>description</key><string>Call to &apos;calloc&apos; has an allocation size of 0 bytes</string>
876 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
949 // CHECK-NEXT: <string>Call to &apos;realloc&apos; has an allocation size of 0 bytes</string>
951 // CHECK-NEXT: <string>Call to &apos;realloc&apos; has an allocation size of 0 bytes</string>
954 // CHECK-NEXT: <key>description</key><string>Call to &apos;realloc&apos; has an allocation size of 0 bytes</string>
956 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
1029 // CHECK-NEXT: <string>Call to &apos;reallocf&apos; has an allocation size of 0 bytes</string>
1031 // CHECK-NEXT: <string>Call to &apos;reallocf&apos; has an allocation size of 0 bytes</string>
1034 // CHECK-NEXT: <key>description</key><string>Call to &apos;reallocf&apos; has an allocation size of 0 bytes</string>
1036 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
1109 // CHECK-NEXT: <string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1111 // CHECK-NEXT: <string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1114 // CHECK-NEXT: <key>description</key><string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1116 allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
1189 // CHECK-NEXT: <string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1191 // CHECK-NEXT: <string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1194 // CHECK-NEXT: <key>description</key><string>Call to &apos;alloca&apos; has an allocation size of 0 bytes</string>
1196 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>
1269 // CHECK-NEXT: <string>Call to &apos;valloc&apos; has an allocation size of 0 bytes</string>
1271 // CHECK-NEXT: <string>Call to &apos;valloc&apos; has an allocation size of 0 bytes</string>
1274 // CHECK-NEXT: <key>description</key><string>Call to &apos;valloc&apos; has an allocation size of 0 bytes</string>
1276 // CHECK-NEXT: <key>type</key><string>Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131)</string>