mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Disallow optimizations which potentially remove boundary checks
for signed values due to a compiler authors considering integer overflow as impossible. The change follows suit of other projects taking the same measure. Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
16a93df7eb
commit
1efe86bb37
1 changed files with 6 additions and 0 deletions
|
|
@ -147,6 +147,12 @@ INLINE_LIMIT?= 8000
|
|||
#
|
||||
CFLAGS+= -ffreestanding
|
||||
|
||||
#
|
||||
# Do not allow a compiler to optimize out overflow checks for signed
|
||||
# types.
|
||||
#
|
||||
CFLAGS+= -fno-strict-overflow
|
||||
|
||||
#
|
||||
# GCC SSP support
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue