sin
6156f7de8b
Remove pwrite/write
2015-01-30 16:37:07 +00:00
sin
fcec6e8280
No need for cp -f when installing
2015-01-30 16:30:11 +00:00
sin
4aae55c8d9
Ensure make install can copy dirs too
2015-01-30 16:29:34 +00:00
sin
e4fe187649
Remove __restrict
2015-01-30 16:25:13 +00:00
sin
e6837a7874
Add FD_{CLR,SET} checks
2015-01-30 16:17:31 +00:00
sin
03886aa26c
Add pread() and pwrite() checks
2015-01-30 09:44:49 +00:00
sin
03289c3954
Fix typo
2015-01-29 20:41:17 +00:00
sin
131211ad47
Style fix
2015-01-29 20:34:01 +00:00
sin
647c25ad9c
Add read()/write() checks
2015-01-29 20:31:49 +00:00
sin
0784beab02
Allow dest == src in memcpy()
...
memcpy() needs to accept dest == src for gcc.
struct foo a, b; a = a; might be implemented using memcpy().
2015-01-29 17:55:03 +00:00
sin
474f2887ce
Add compile-time checks as well
2015-01-29 12:42:41 +00:00
sin
3effc6dace
Style fix
2015-01-29 12:14:44 +00:00
sin
4a18008ce1
Add bzero() checks
2015-01-29 12:14:06 +00:00
sin
3d15948020
Add license info
2015-01-29 11:13:07 +00:00
sin
c18ebb0399
Style fix
2015-01-29 11:10:04 +00:00
sin
1e306fd642
Trap if memcpy() pointers are overlapping
...
Maybe this should only be done if _FORTIFY_SOURCE > 1.
2015-01-29 10:56:15 +00:00
sin
52d4c97980
Add bcopy() checks
2015-01-29 10:43:09 +00:00
sin
2f6dc9f34f
Add fgets() checks
2015-01-29 00:12:59 +00:00
sin
f54195479d
Use BSD-style func defs
2015-01-28 23:40:17 +00:00
sin
37b438f146
Use #ifdef instead of #if defined
2015-01-28 17:47:08 +00:00
sin
c49f6215ea
Add mempcpy() checks
2015-01-28 17:44:38 +00:00
sin
31f2952bc7
Use local _n to avoid multiple evaluation
2015-01-28 17:15:56 +00:00
sin
bcc398c14a
Simplify checks
...
Do not perform checks only when `n' is constant, most of the time
it is not.
The bos == (size_t)-1 check is redundant because n > bos
with bos == -1 will always be false.
2015-01-28 17:13:44 +00:00
sin
5960e3364f
Add snprintf() checks
...
We need to use a variadic macro in this case because GCC doesn't
allow inline functions with variable argument lists.
2015-01-28 17:08:37 +00:00
sin
b4a9df1a08
Use __builtin_va_list
2015-01-28 16:57:38 +00:00
sin
e2a76a9502
Add vsnprintf() checks
2015-01-28 16:54:48 +00:00
sin
1872b6a7e5
Remove trailing semicolon
2015-01-28 16:31:19 +00:00
sin
013d07a11c
Add stpncpy()
2015-01-28 16:21:38 +00:00
sin
9626051b5d
Add stpcpy()
2015-01-28 16:16:23 +00:00
sin
de7999ee82
Move defines to the bottom
...
This allows us to re-use the functions internally.
2015-01-28 16:07:24 +00:00
sin
6bb34c15b4
Merge __foo_chk() into __fortify_foo()
2015-01-28 15:39:11 +00:00
sin
b258495eba
Initial commit
2015-01-28 15:14:49 +00:00