safe-iop
- safe-iop Safe Integer Operation Library for C
- This library provides a collection of (macro-based) functions for performing
safe integer operations across platform and architecture with a straightforward
API.
- safe-iop supports two modes of use: header-only and linked dynamic library. The linked, dynamic library supplies a format-string based interface which is in pre-alpha. The header-only mode supplies integer and sign overflow and underflow pre-condition checks using checks derived from the CERT secure coding guide. The checks do not rely on twos complement arithmetic and should not at any point perform an arithmetic operations that may overflow. It also performs basic type agreement checks to ensure that the macros are being used (somewhat) correctly.
NOTE
- If you are using a version older than 0.3.1, please upgrade. 0.3.0, and possibly earlier versions will fail unnecessarily on negative addition cases.
Installation
- Using the FreeBSD
ports system:
cd /usr/ports/devel/safe-iop make install clean
Using the FreeBSD pkg system:pkg install devel/safe-iop
Additional resources
- BSD manpages
- Writing UNIX Documentation
- Documentation library
- BSDwatch
- DamnSmallBSD
BSDforge repos
- BSDforge on Codeberg
Also listed on
- FreeBSD
- FreshPorts
Popular BSD forks
- FreeBSD
- NetBSD
- OpenBSD
- GhostBSD
- PC-BSD
- MidnightBSD
- DesktopBSD