Public bug reported:

Build fails because gcc detects using an incorrect length (16 instead of
8) when doing an sprintf for vendor_id.

spc.c: In function ‘spc_lu_init’:
spc.c:2072:5: error: ‘%-16s’ directive output truncated writing 16 bytes into a 
region of size 9 [-Werror=format-truncation=]
    "%-16s", VENDOR_ID);
     ^~~~~
In file included from /usr/include/stdio.h:862:0,
                 from spc.c:24:
/usr/include/i386-linux-gnu/bits/stdio2.h:64:10: note: 
‘__builtin___snprintf_chk’ output 17 bytes into a destination of size 9
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

** Affects: tgt (Ubuntu)
     Importance: High
     Assignee: Stefan Bader (smb)
         Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1723055

Title:
  Artful: Fix FTBS on test-rebuild-20170922

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1723055/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to