Enable Wbounded by default. Passing bound bigger than the buffer
authormartynas <martynas@openbsd.org>
Mon, 13 Jan 2014 01:44:31 +0000 (01:44 +0000)
committermartynas <martynas@openbsd.org>
Mon, 13 Jan 2014 01:44:31 +0000 (01:44 +0000)
commit205d914736fa27abe76f959a074c750f10aca432
tree4b93dd6d464e3a083d2691f164dbd4fc3617da62
parentc84e177da0dd0ccb6b9da7846c37982d8d6d2993
Enable Wbounded by default.  Passing bound bigger than the buffer
size almost always has security implications.  I think this quote
from Theo summarizes the situation best:

Which is why it is important to have at least one unforgiving
platform in the ecosystem which properly labels shit shit.

That's OpenBSD.  If anyone can't handle that, they can go to platforms
which hide the reality.
gnu/gcc/gcc/c.opt
gnu/usr.bin/gcc/gcc/c-common.c