aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches/040-Add-format-attribute-to-some-function-declarations.patch
Commit message (Collapse)AuthorAgeFilesLines
* musl: rename a custom backport patchKoen Vandeputte2016-12-261-197/+0
| | | | | | Ensure there is room in the numbering for next patches Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: update to the latest git version, fixes TLS issuesFelix Fietkau2016-01-301-18/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48574
* musl: Add format attribute to some function declarationsHauke Mehrtens2016-01-241-0/+209
GCC and Clang are able to check the format arguments given to a function and warn the user if there is a error in the format arguments or if there is a potential uncontrolled format string security problem in the code. GCC does this automatically for some functions like printf(), but it is also possible to annotate other functions in a way that it will check them too. This feature is used by glibc for many functions. This patch adds the attribute to the some functions of musl expect for these functions where gcc automatically adds it. GCC automatically adds checks for these functions: printf, fprintf, sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and vsprintf. The documentation from gcc is here: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html The documentation from Clang is here: http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48467