| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-09-27 | Add an option to make use of compiler-provided _chk builtins | jvoisin | |
| 2023-09-22 | Add more __diagnose_as_builtin annotations | jvoisin | |
| 2023-09-21 | Properly enable diagnose_as_builtin attribute | jvoisin | |
| 2023-09-20 | Add tests for compile-time errors | jvoisin | |
| 2023-09-20 | Replace a strlen+condition with strnlen | jvoisin | |
| 2023-09-11 | Factorize overlap checks into a macro | jvoisin | |
| 2023-09-11 | Add a warning for _FORTIFY_SOURCE>3 | jvoisin | |
| 2023-09-11 | Add a warning if realpath is called with path set to NULL | jvoisin | |
| 2023-09-11 | Add the warn_unused_result attribute to alloc-related functions | jvoisin | |
| 2023-08-22 | Clean up some includes | jvoisin | |
| - Remove a superfluous `#if defined(__has_builtin)` since it's already accounted for in include/fortify-headers.h - Replace `_FORTIFY_FD_POS0` with the already existing `_FORTIFY_POS0` - Factorise some duplicate code into a macro | |||
| 2023-08-22 | Increase portability | jvoisin | |
| If the compiler doesn't know about `__builtin_trap`, use `abort` instead. | |||
| 2023-08-22 | Add hardening for pwrite | jvoisin | |
| 2023-08-21 | Harden umask | jvoisin | |
| 2023-08-21 | Make use of __diagnose_if | jvoisin | |
| 2023-08-21 | Remove some todo in __bmo's implementation | jvoisin | |
| 2023-08-21 | Add tests for fgetws and mbsrtowcs | jvoisin | |
| 2023-08-20 | Add more __access annotations in stdio.h | jvoisin | |
| 2023-08-20 | Add two __format annotations | jvoisin | |
| 2023-08-20 | Make use of __diagnose_as_builtin | jvoisin | |
| 2023-08-20 | Use pass_dynamic_object_size only for FORTIFY_SOURCE > 2 | jvoisin | |
| 2023-08-20 | Make use of pass_dynamic_object_size when available | jvoisin | |
| 2023-08-20 | Fix clang build | jvoisin | |
| - s/CLFAGS/CFLAGS/ - provide paths to local includes - sprinkle more __pass_object_size__ - remove a problematic test | |||
| 2023-08-20 | Add hardening for strrchr | jvoisin | |
| 2023-08-20 | Add hardening for strchr | jvoisin | |
| 2023-08-20 | Remove memrchr hardening for now | jvoisin | |
| It doesn't play nice with gcc. | |||
| 2023-08-03 | Add hardening for memchr and memrchr | jvoisin | |
| 2023-07-18 | Make use of the alloc_size attribute | jvoisin | |
| 2023-07-10 | Clean up a bit the macro hell | jvoisin | |
| 2023-07-09 | Add some malloc annotations | jvoisin | |
| 2023-07-09 | Add some `format` annotations | jvoisin | |
| 2023-07-09 | Move a misplaced #endif | jvoisin | |
| 2023-07-09 | Add an __access__ annotation to wchar.h | jvoisin | |
| 2023-07-09 | Improve a bit `size_t*size_t` overflow checks | jvoisin | |
| 2023-07-09 | Add access annotations to unistd.h | jvoisin | |
| 2023-07-05 | Add access annotations to sys/socket.h | jvoisin | |
| 2023-06-27 | Add more access-annotations | jvoisin | |
| 2023-06-25 | Fix clang support | jvoisin | |
| 2023-06-25 | add initial clang support | Daniel Kolesa | |
| 2023-06-25 | avoid __extension__ with clang | Daniel Kolesa | |
| It seems useless and triggers 'error: expected external declaration' | |||
| 2023-06-22 | Add an annotation for fgets | jvoisin | |
| 2023-06-22 | Add a test for `poll` | jvoisin | |
| 2023-06-22 | Add a test for strncat | jvoisin | |
| 2023-06-22 | Add tests for stcncpy | jvoisin | |
| 2023-06-22 | Add tests for stpcpy | jvoisin | |
| 2023-06-14 | Add tests for strncpy and handle overlapping buffers there | jvoisin | |
| 2023-05-30 | Add some __attribute__((access…)) annotations | jvoisin | |
| See https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html for details | |||
| 2023-05-30 | Add a check for overlapping copies in strcpy | jvoisin | |
| 2023-05-30 | Fix inconsistent time_t version of ppoll | jvoisin | |
| fortify/poll.h includes poll.h, which redirects the ppoll sys call to __ppoll_time64, if the _REDIR_TIME64 macro is 1. Then fortify/poll.h will #undef ppoll and use the 32 bit version, which is inconsistent. Taken from: https://github.com/openwrt/openwrt/pull/12575 | |||
| 2023-04-13 | Make use of __builtin_dynamic_object_size | jvoisin | |
| GCC and Clang provide __builtin_dynamic_object_size (see documentation: https://gcc.gnu.org/onlinedocs/gcc/Object-Size-Checking.html), so we should make use of it when its available. | |||
| 2019-03-13 | getgroups: do not trap on non-positive gidsetsize | info@mobile-stream.com | |
| First, we should never check the size of __s if __l == 0 since the array is not going to be modified in that case. Second, negative __l is a well-defined error case (EINVAL) and we should never trap on a conforming code like this: r = getgroups(-1, NULL); if (r == -1) ... An example of non-desired behaviour for negative __l is the gnulib configure script which checks for getgroups(-1, ...) to catch some ancient FreeBSD kernel bug. The conftest binary traps even on good system (e.g. linux/musl) and the unnecessary getgroups wrapper is enforced for any project that uses gnulib. This patch also changes the size_t cast to avoid the explicit zero extension on systems where size_t differs from unsigned int. | |||
