mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
be5fcf9fd7
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 |
||
---|---|---|
.. | ||
001-eliminate-protected-visibility-data-in-libc.so-with-.patch | ||
010-Add-PowerPC-soft-float-support.patch | ||
020-upstream_open_memstream.patch | ||
030-mips-add-vdso-support.patch | ||
040-Add-format-attribute-to-some-function-declarations.patch | ||
100-add_glob_onlydir.patch | ||
110-read_timezone_from_fs.patch | ||
200-add_libssp_nonshared.patch | ||
300-relative.patch | ||
900-iconv_size_hack.patch | ||
901-crypt_size_hack.patch | ||
920-getifaddrs_ptp_fix.patch |