]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-test: Disable string format security build flags
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 25 Oct 2018 13:18:24 +0000 (10:18 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 25 Oct 2018 13:28:56 +0000 (10:28 -0300)
The code has some possible flaws related to string manipulation
functions which are know to be fragile. This commit disables this
protection but this should be fixed by NXP for next releases.

Flags being disabled:

 - -Wformat
 - -Wformat-security
 - -Werror=format-security

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/imx-test/imx-test_git.bb

index b0567dc189276cab768fa435f7854b2bbf83e2e4..4590b1a4eafdea014170c545cb28d6cd97e5f9d7 100644 (file)
@@ -48,6 +48,9 @@ PACKAGECONFIG_append_imxvpu = " vpu"
 PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
 PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu"
 
+# FIXME: NXP should fix the possible string flaws from their code.
+SECURITY_STRINGFORMAT = ""
+
 do_compile() {
     CFLAGS="${TOOLCHAIN_OPTIONS}"
     oe_runmake V=1 VERBOSE='' \