Package: libmcs-utils
Version: 0.7.2-1
Severity: normal
$ ltrace -e printf mcs-getconfval foo foo foo >/dev/null
printf("%s/%s => %s\n", "foo", "foo", NULL) = 18
+++ exited (status 0) +++
While EGLIBC[0] was kind enough not to crash here, you shouldn't rely on
its forgiveness. Trying to format a NULL with %s is wrong.
[0] From documentation: "If you accidentally pass a null pointer as the
argument for a `%s' conversion, the GNU library prints it as `(null)'.
We think this is more useful than crashing. But it's not good practice
to pass a null argument intentionally."
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org