Secure coding: Difference between revisions

Content deleted Content added
Changing short description from "Computer software" to "Software development methodology"
m Buffer-overflow prevention: formating fix(es), replaced: ,''''' → ''''',
Line 36:
return dst;
}
</syntaxhighlight>In the above code snippet, the program attempts to copy the contents of '''''src''''' into '''''dst,''''', while also checking the return value of malloc to ensure that enough memory was able to be allocated for the destination buffer.
 
== Format-string attack prevention ==