Home | History | Annotate | Download | only in Analysis

Lines Matching defs:string

1049   char * string = malloc(sizeof(char)*10);
1050 passConstPtr(string);
1180 char * string = malloc(sizeof(char)*10);
1181 string += 1;
1182 int length = strlen(string); // expected-warning {{Potential leak of memory pointed to by 'string'}}
1186 char * string = malloc(sizeof(char)*10);
1187 string += 1;
1188 int length = strlen(string);
1189 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1193 char * string = malloc(sizeof(char)*10);
1194 string += 1;
1195 passConstPtr(string);
1196 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}