SecProgLib


The following functions are provided by SecProgLib:

extern char *s_strncpy(char *dest, char *src, size_t n);
extern char *s_strncat(char *dest, char *src, size_t n);
extern int   s_execv(const char *filename, char *const argv[]);
extern FILE *s_tmpfile(void);
extern FILE *s_popen(char *cmd, const char *type);
extern int   safe_tmpfile(char *filename);
extern int   safe_reopen(char *file, int mode);
extern int   sigprotection(u_int toggle, sigset_t *sp_blockmask);
extern int   close_stdfds(void); // fix for old glibc
extern int   setlimits(sl_limit slim);
extern int   setupsbitproc(void);
extern int   chkpathperm(char *path_full, char *path_hit, size_t path_size, cpp_stat *stptr, int depth);
Date
Description
Download/Link
14. Dec. 2005
IMPORTANT: added check for n being 0 in s_str functions to avoid buffer overflow! Thanks to Ilja van Sprundel. Source
i586 RPM
i586 Development RPM
Source RPM
22. Apr. 2004
- cleaned up code
- wrote man-page
Source
i586 RPM
i586 Development RPM
12. Feb. 2003
- fixed s_popen() to support write mode SecProgLib 0.7
30. Jan. 2003
- s_tmpfile is more compatible now
- fixed wrong comparsion
SecProgLib 0.6
19. Dec. 2000
minor bugfixes
SecProgLib 0.5
29. Oct. 2000
removed GPL and kdevelop overhead
 SecProgLib 0.4
21. Sept. 2000
New release of my 'Secure Programming Library'. A new function called s_popen() is added. This code was part of my source code review of  ntop . Unfortunately the code doesn't work on Solaris and isn't 100% compatible to the glibc popen() function. Nevertheless it works great under Linux and it's secure. ;-)
 SecProgLib 0.3
15. Feb. 2000
A set of functions, that helps a programmer to make their code more secure in a easy way.
Please review and test these stuff. Suggestions are welcome.
New: minor bug fixes and improved API
 SecProgLib 0.2
12. Jan. 2000
A set of functions, that helps a programmer to make their code more secure in a easy way
Please review and test these stuff. Suggestions are welcome.
 SecProgLib 0.1

Main Page