Public bug reported:
While the build tries to hide the error (>dev/null 2>&1) it can be
reproduced and then shows:
In function ‘printf’,
inlined from ‘mdb_dump_catalog’ at catalog.c:198:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:112:10: error: ‘%-12s’
directive argument is null [-Werror=format-overflow=]
112 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack
());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
I've found that to be a real issue with new toolchains identifying a
problem in the code.
FYI - I've reported the same upstream
https://github.com/mdbtools/mdbtools/issues/352
And found a related Debian issue
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986575
** Affects: mdbtools (Ubuntu)
Importance: Undecided
Status: New
** Affects: mdbtools (Debian)
Importance: Unknown
Status: Unknown
** Bug watch added: Debian Bug tracker #986575
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986575
** Also affects: mdbtools (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986575
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1945478
Title:
New compilers break on potentially passing NULL to printf
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdbtools/+bug/1945478/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs