[OE-core] [PATCH] security_flags.inc: libidn fails to build w/ -Wformat-security

André Draszik git at andred.net
Fri Jun 24 10:59:22 UTC 2016


From: André Draszik <adraszik at tycoint.com>

../../libidn-1.32/src/idn.c: In function 'main':
../../libidn-1.32/src/idn.c:172:7: error: format not a string literal and no format arguments [-Werror=format-security]
       error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified"));
       ^~~~~
../../libidn-1.32/src/idn.c:187:5: error: format not a string literal and no format arguments [-Werror=format-security]
     fprintf (stderr, _("Type each input string on a line by itself, "
     ^~~~~~~
../../libidn-1.32/src/idn.c:202:4: error: format not a string literal and no format arguments [-Werror=format-security]
    error (EXIT_FAILURE, errno, _("input error"));
    ^~~~~
../../libidn-1.32/src/idn.c:220:8: error: format not a string literal and no format arguments [-Werror=format-security]
        _("could not convert from UTF-8 to UCS-4"));
        ^
../../libidn-1.32/src/idn.c:245:8: error: format not a string literal and no format arguments [-Werror=format-security]
        _("could not convert from UTF-8 to UCS-4"));
        ^
../../libidn-1.32/src/idn.c:281:6: error: format not a string literal and no format arguments [-Werror=format-security]
      _("could not convert from UTF-8 to UCS-4"));
      ^
../../libidn-1.32/src/idn.c:340:6: error: format not a string literal and no format arguments [-Werror=format-security]
      _("could not convert from UCS-4 to UTF-8"));
      ^
../../libidn-1.32/src/idn.c:364:6: error: format not a string literal and no format arguments [-Werror=format-security]
      _("could not convert from UCS-4 to UTF-8"));
      ^
../../libidn-1.32/src/idn.c:442:8: error: format not a string literal and no format arguments [-Werror=format-security]
        _("could not convert from UCS-4 to UTF-8"));
        ^
../../libidn-1.32/src/idn.c:498:6: error: format not a string literal and no format arguments [-Werror=format-security]
      _("could not convert from UTF-8 to UCS-4"));
      ^
../../libidn-1.32/src/idn.c:527:5: error: format not a string literal and no format arguments [-Werror=format-security]
     _("could not convert from UTF-8 to UCS-4"));
     ^
../../libidn-1.32/src/idn.c:540:6: error: format not a string literal and no format arguments [-Werror=format-security]
      error (EXIT_FAILURE, 0, _("could not do NFKC normalization"));
      ^~~~~
../../libidn-1.32/src/idn.c:551:5: error: format not a string literal and no format arguments [-Werror=format-security]
     _("could not convert from UTF-8 to UCS-4"));
     ^

Signed-off-by: André Draszik <adraszik at tycoint.com>
---
 meta/conf/distro/include/security_flags.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc
index a7be185..3f52afb 100644
--- a/meta/conf/distro/include/security_flags.inc
+++ b/meta/conf/distro/include/security_flags.inc
@@ -105,6 +105,7 @@ SECURITY_STRINGFORMAT_pn-expect = ""
 SECURITY_STRINGFORMAT_pn-gcc = ""
 SECURITY_STRINGFORMAT_pn-gettext = ""
 SECURITY_STRINGFORMAT_pn-kexec-tools = ""
+SECURITY_STRINGFORMAT_pn-libidn = ""
 SECURITY_STRINGFORMAT_pn-oh-puzzles = ""
 
 TARGET_CFLAGS_append_class-target = " ${SECURITY_CFLAGS}"
-- 
2.8.1




More information about the Openembedded-core mailing list