| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-08-22 | Don't trap if an encoding error occurs in wcrtomb() | sin | |
| The POSIX definition of wcrtomb (http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html) states: "When wc is not a valid wide character, an encoding error shall occur. In this case, the function shall store the value of the macro [EILSEQ] in errno and shall return (size_t)-1; the conversion state shall be undefined." The fortify-headers implementation of wcrtomb interprets the result -1 as 18446744073709551615 bytes. Since this is the highest 64-bit number possible, it is pretty safe to say this will always be larger than any buffer provided to wcrtomb. Therefore, it traps. Fixes bug https://bugs.alpinelinux.org/issues/7681. Patch by A. Wilcox <AWilcox@Wilcox-Tech.com> | |||
| 2016-09-10 | Bump copyright year | sin | |
| 2015-07-15 | Fix wcrtomb() check | sin | |
| This was breaking valid code, example: char c; wcrtomb(&c, L'0', st); | |||
| 2015-06-25 | Add __extension__ mark to include_next to silence -pedantic | Steven Barth | |
| Signed-off-by: Steven Barth <steven@midlink.org> | |||
| 2015-06-03 | Use namespace-safe macro, param and variable names | Trutz Behn | |
| 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-04-01 | Add feature-test guards for mbsnrtowcs() and wcsnrtombs() | sin | |
| 2015-03-14 | Use __typeof__ to in part avoid replicating function types | Trutz Behn | |
| 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 | 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 | 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-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 | Add fgetws() check | sin | |
