| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-05-21 | Fix return-type of fortified FD_CLR and FD_SET | Trutz Behn | |
| POSIX specifies them to have return-type void, not int. | |||
| 2015-05-13 | Wrap some overly long lines | sin | |
| 2015-05-13 | Add LICENSE header | sin | |
| 2015-05-13 | Add fortify_fn() helper in fortify-headers.h | sin | |
| 2015-05-07 | Minor style fix | sin | |
| 2015-05-07 | fix realpath when stdlib.h is included before limits.h | Natanael Copa | |
| If program includes stdlib.h before limits.h without _XOPEN_SOURCE, _GNU_SOURCE or _BSD_SOURCE explicitly set, then will it always trigger the trap with musl libc. This is becase stdlib.h will pull in features.h which will set _GNU_SOURCE. This means that the fortify stdlib.h will not include limits.h but it will still trigger the fortified realpath(), but without PATH_MAX set. We fix this by including system stdlib.h before testing if limits.h should be included. Since PATH_MAX is known at compile time we can also error at compile time, instead of compiling a broken realpath(). | |||
| 2015-04-08 | Add read checks for bcopy() | sin | |
| 2015-04-08 | Check for out of bound reads for memcpy, memmove and mempcpy() | sin | |
| 2015-04-01 | Add feature-test guards for mbsnrtowcs() and wcsnrtombs() | sin | |
| 2015-03-15 | Hide stpcpy() and stpncpy() under feature test macros | sin | |
| 2015-03-14 | Use __typeof__ to in part avoid replicating function types | Trutz Behn | |
| 2015-03-14 | Fix typo in attribute name | Trutz Behn | |
| 2015-03-14 | Explicitly cast pointers to satisfy C++ code | sin | |
| 2015-03-14 | Add __artificial__ to aid in debugging | sin | |
| 2015-03-13 | Restore C++ support | sin | |
| 2015-03-13 | Fix typo again | sin | |
| 2015-03-13 | Implement snprintf() and sprintf() using __builtin_va_arg_pack() | sin | |
| Requires at least GCC 4.3. | |||
| 2015-03-13 | Re-order vsnprintf() and vsprintf() | sin | |
| vsprintf() needs to access __vsnprintf_orig(). | |||
| 2015-03-13 | Fix typo | sin | |
| 2015-03-13 | Rework fortify implementation to use extern inline | sin | |
| Overriding functions with macros is legal in C but a lot of software is not prepared for it. Use the extern inline method to achieve the same result. | |||
| 2015-03-11 | Put include guards in the reserved namespace | Trutz Behn | |
| fortify-headers is considered part of the implementation. | |||
| 2015-03-11 | Revert "Add explicit casts to satisfy C++ code" | sin | |
| This reverts commit 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212. | |||
| 2015-03-11 | Ignore C++ for now | sin | |
| It is not legal to override standard functions using macros in C++. We may have to revisit this in the future. | |||
| 2015-03-11 | Add ifdef guards for C++ code | sin | |
| 2015-03-11 | Add explicit casts to satisfy C++ code | sin | |
| 2015-03-11 | Revert "Fix invalid conversion in C++ code" | sin | |
| This reverts commit 4b4dfea25d660a8a27e95ea531686001246b3d1e. | |||
| 2015-03-11 | Fix invalid conversion in C++ code | sin | |
| /usr/include/fortify/string.h: In function 'void* __fortify_memcpy(void*, const void*, size_t)': /usr/include/fortify/string.h:13:12: error: invalid conversion from 'void*' to 'char*' [-fpermissive] /usr/include/fortify/string.h:14:18: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive] Since we are relying on GCC anyway, assume void * arithmetic is OK. | |||
| 2015-03-10 | Inline ppoll() as well | sin | |
| 2015-03-10 | Make ppoll() static | sin | |
| Thanks Timo Teras. | |||
| 2015-03-10 | Fix strncat() and strncpy() mappings | sin | |
| Thanks zhasha. | |||
| 2015-03-07 | Style fix | sin | |
| 2015-03-06 | Fix some checks in wchar.h | sin | |
| Some of these functions allow the destination pointer to be NULL. Do not trap in that case as nothing will be written to the destination buffer. | |||
| 2015-03-05 | Fix mbsnrtowcs() and wcsnrtombs() checks | sin | |
| 2015-03-04 | Fix wcsrtombs() check | sin | |
| 2015-03-04 | Fix mbsrtowcs() check | sin | |
| 2015-03-04 | Handle early termination in wcsnrtombs() and mbsnrtowcs() | sin | |
| 2015-03-04 | Add wctomb() check | sin | |
| 2015-03-04 | Add wcstombs() check | sin | |
| 2015-03-04 | Add wcsnrtombs() and wcsrtombs() checks | sin | |
| 2015-03-04 | Add wcsncat() and wcsncpy() checks | sin | |
| 2015-03-04 | Add wcrtomb(), wcscat() and wcscpy() checks | sin | |
| 2015-03-03 | Style fix | sin | |
| 2015-03-03 | Add mbstowcs() check | sin | |
| 2015-03-03 | Add mbsnrtowcs() and mbsrtowcs() checks | sin | |
| 2015-03-03 | Add wmemcpy() and wmemmove() checks | sin | |
| 2015-03-03 | Add wmemset() check | sin | |
| 2015-03-03 | Fix signed/unsigned warning | sin | |
| 2015-03-03 | Remove gcc attribute decoration | sin | |
| 2015-03-03 | Don't trap on error for vsprintf() and friends | sin | |
| 2015-03-03 | Add fgetws() check | sin | |
