fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 87f56f70d77945c284490ce779ddff0c64343e41
parent 91c0c1270f5f690d787a126fe20430ec6409eb9f
Author: sin <sin@2f30.org>
Date:   Wed,  4 Feb 2015 15:12:50 +0000

Style fix

Diffstat:
Minclude/stdio.h | 2+-
Minclude/string.h | 2+-
Minclude/strings.h | 2+-
Minclude/sys/socket.h | 2+-
Minclude/unistd.h | 2+-
5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/stdio.h b/include/stdio.h @@ -6,7 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) +#define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) __errordecl(__fgets_error, "fgets: buffer overflow detected"); static inline __attribute__ ((always_inline)) diff --git a/include/string.h b/include/string.h @@ -6,7 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) +#define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) __errordecl(__memcpy_error, "memcpy: buffer overflow detected"); static inline __attribute__ ((always_inline)) diff --git a/include/strings.h b/include/strings.h @@ -6,7 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) +#define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_POSIX_SOURCE) \ || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE+0 < 200809L) \ diff --git a/include/sys/socket.h b/include/sys/socket.h @@ -6,7 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) +#define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) __errordecl(__recv_error, "recv: buffer overflow detected"); static inline __attribute__ ((always_inline)) diff --git a/include/unistd.h b/include/unistd.h @@ -6,7 +6,7 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#define __errordecl(name, msg) extern void name(void) __attribute__((__error__(msg))) +#define __errordecl(name, msg) extern void name(void) __attribute__ ((__error__(msg))) __errordecl(__pread_error, "pread: buffer overflow detected"); static inline __attribute__ ((always_inline))