aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2016-01-24 00:05:14 +0000
committerHauke Mehrtens <hauke@openwrt.org>2016-01-24 00:05:14 +0000
commit21a3fd81b245544044574658ca6f90fe10a65953 (patch)
treeb6f9ce8cfc91e6cdd4bc7547cf16b28d63e0f8bc /target/linux/ramips
parent5ff1d45a7fc6ca9090275ed9f65ea258e187af30 (diff)
downloadmaster-187ad058-21a3fd81b245544044574658ca6f90fe10a65953.tar.gz
master-187ad058-21a3fd81b245544044574658ca6f90fe10a65953.tar.bz2
master-187ad058-21a3fd81b245544044574658ca6f90fe10a65953.zip
musl: Add format attribute to some function declarations
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48467 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
0 files changed, 0 insertions, 0 deletions