Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889133
zblair.lint-test
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
332 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:16:
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Jan 19 2025, 11:35 (5 w, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1123978
Default Alt Text
zblair.lint-test (332 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment