Home | History | Annotate | Download | only in Analysis

Lines Matching defs:string

1451   char * string = malloc(sizeof(char)*10);
1452 passConstPtr(string);
1582 char * string = malloc(sizeof(char)*10);
1583 string += 1;
1584 int length = strlen(string); // expected-warning {{Potential leak of memory pointed to by 'string'}}
1588 char * string = malloc(sizeof(char)*10);
1589 string += 1;
1590 int length = strlen(string);
1591 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1595 char * string = malloc(sizeof(char)*10);
1596 string += 1;
1597 passConstPtr(string);
1598 free(string); // expected-warning {{Argument to free() is offset by 1 byte from the start of memory allocated by malloc()}}
1651 strcpy(p, s); // expected-warning{{String copy function overflows destination buffer}}