|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: chief
quasisoft.comDate: Sun Jul 01 2001 - 14:22:08 CDT
Dear gents and ladies,
Libsafe is the answer to the question of risk management on Linux. Because
the theoretical high-availability operating system may never otherwise exist,
a certain type of programming model must be followed. The outline is:
1. Never call library functions from main().
2. Limit functions to one input buffer.
3. Always put the external input buffer at the very top of the stack. This
means listing it as the first internal function variable declaration in the
function definition.
4. Always align arrays on a double multiple of four. This translates to a
series of possible array sizes including 4, 8, 16, 32, 64, 128, 256, 512,
1024, 4048, 8096, 16192, 32384 and 64768 bytes.
5. Always check to make sure that any size parameter passed to a library
function is not greater than the size of the input buffer that receives the
returned value.
--With best regards,
Brook
chief
quasisoft.com Q U A S I S O F T
.-. "For dignity compos'd and high exploit... all was false and hollow." /V\ --Milton, Paradise Lost II (/ \) ( ) ^^-^^
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]