]> code.ossystems Code Review - openembedded-core.git/commit
security_flags: turn potential string format security issues into an error
authorJoshua Lock <joshua.g.lock@intel.com>
Thu, 28 Apr 2016 13:27:44 +0000 (14:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:55 +0000 (10:30 +0100)
commitf335f8e744fb312b3eb599c331d08a9a6e5a8ff8
tree4c743f6318402647ff6358fd93941aa253dbe39b
parent30acc7a6b9e6d1c42ba1df6e5a362d10b43cb4eb
security_flags: turn potential string format security issues into an error

Add "-Wformat -Wformat-security -Werror=format-security" to the default
SECURITY_CFLAGS to catch potential security vulnerabilities due to the
misuse of various string formatting functions.

These flags are widely used in distributions such as Fedora and Ubuntu,
however we have 15 recipes in OE-Core which fail to build with these
flags included and thus the flags are removed for:
- busybox
- console-tools
- cmake
- expect
- gcc
- gettext
- kexec-tools
- leafpad
- libuser
- ltp
- makedevs
- oh-puzzles
- stat
- unzip
- zip

[YOCTO #9488]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/security_flags.inc