aboutsummaryrefslogtreecommitdiffstats
path: root/BSDmakefile
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-01-24 00:05:14 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2016-01-24 00:05:14 +0000
commitbe5fcf9fd76a30c8a28a17daf9c3ddcc9c3af0ba (patch)
tree6e067ff645321b2dc2dabf3f5925b5cdf04d9bf3 /BSDmakefile
parentb5d6256ca885be87cf8e2a69fefc7ac3248c7f72 (diff)
downloadupstream-be5fcf9fd76a30c8a28a17daf9c3ddcc9c3af0ba.tar.gz
upstream-be5fcf9fd76a30c8a28a17daf9c3ddcc9c3af0ba.tar.bz2
upstream-be5fcf9fd76a30c8a28a17daf9c3ddcc9c3af0ba.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> SVN-Revision: 48467
Diffstat (limited to 'BSDmakefile')
0 files changed, 0 insertions, 0 deletions