Compile with FORTIFY_SOURCE
This can catch some classes of buffer overflows.
This commit is contained in:
parent
21321a9d96
commit
5820c72092
|
@ -33,7 +33,7 @@ AC_CHECK_HEADERS([sys/xattr.h])
|
|||
AC_CHECK_HEADERS([attr/xattr.h])
|
||||
AC_CHECK_HEADERS([sys/extattr.h])
|
||||
|
||||
CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64"
|
||||
CXXFLAGS="$CXXFLAGS -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
|
||||
|
||||
dnl ----------------------------------------------
|
||||
dnl For macOS
|
||||
|
|
Loading…
Reference in New Issue