]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/coredump/coredump.c
coredump: fix non-literal string used in printf 5774/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Apr 2017 18:28:19 +0000 (14:28 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 Apr 2017 17:39:50 +0000 (13:39 -0400)
commitae2173d66b8b9fc42f311d8586a3cf4abcc65a76
tree9ed930bbbb4ae22b57d7d60da60f847716710768
parent93484b4790e261ac3dab12cba5b20d33c74a9202
coredump: fix non-literal string used in printf

This was exposed by the previous commit. This could be potentially
unpleasant, but we are saved by the fact that this code path was only
taken for journald crashes, where we control COMM and know that it doesn't
contain any special characters. Use log_dispatch which does not do any
format processing to push the message out.
src/coredump/coredump.c