Lines Matching +defs:buffer +defs:string
1104 // Treat source buffer contents as escaped.
1303 char *buffer;
1306 buffer = stackBuffer;
1308 buffer = malloc(myValueSize);
1310 // do stuff with the buffer
1311 if (buffer != stackBuffer)
1312 free(buffer);
1317 char *buffer;
1320 buffer = stackBuffer;
1322 buffer = malloc(myValueSize);
1324 // do stuff with the buffer
1325 if (buffer == stackBuffer)
1598 char * string = malloc(sizeof(char)*10);
1599 passConstPtr(string);
1729 char * string = malloc(sizeof(char)*10);
1730 string += 1;
1731 int length = strlen(string); // expected-warning {{Potential leak of memory pointed to by 'string'}}
1735 char * string = malloc(sizeof(char)*10);
1736 string += 1;
1737 int length = strlen(string);
1738 free(string); // expected-warning {{Argument to 'free()' is offset by 1 byte from the start of memory allocated by 'malloc()'}}
1742 char * string = malloc(sizeof(char)*10);
1743 string += 1;
1744 passConstPtr(string);
1745 free(string); // expected-warning {{Argument to 'free()' is offset by 1 byte from the start of memory allocated by 'malloc()'}}