Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188807
zblair.lint-test
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
342 B
Referenced Files
None
Subscribers
None
zblair.lint-test
View Options
/**
* Taken from http://www.slideshare.net/zblair/cppcheck-10316379
*/
void foo(char* str) {
char* buf = new char[8];
strcpy(buf, str);
FILE* file = fopen("out.txt", "w");
if (!file)
return;
for (char* c = buf; *c; ++c)
fputc((int)*c, file);
delete buf;
}
~~~~~~~~~~
error:10:
error:15:
error:16:
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Jul 8, 08:32 (7 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
810475
Default Alt Text
zblair.lint-test (342 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment