Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Code Security

Name: Anonymous 2007-04-10 3:25 ID:oSbmDWg8

Is it possible to write code in C and not be vulnerable to buffer overflows? Or is this a fool's errand?

Name: Anonymous 2007-04-10 4:50 ID:/eaLZPG9

It's actually pretty simple to write secure C code, if you take a few simple precautions.

1) Always use fixed size arrays, declared in global scope for main access.

2) Allow the user to use format specifiers in input strings, for as the saying goes, "%s %02X %.02f"

3) Never use the the functions >>2 described, they are dangerous.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List