Date: Thu, 30 Dec 2021 07:09:01 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: dcb724b5a7d9 - main - ktrdump: properly parse %% in the format string Message-ID: <202112300709.1BU791q0032376@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=dcb724b5a7d97a7b63566ba0ee48265eb743a94e commit dcb724b5a7d97a7b63566ba0ee48265eb743a94e Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2021-12-30 07:08:15 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2021-12-30 07:08:15 +0000 ktrdump: properly parse %% in the format string Discovered by: 27ca37acb7c25 --- usr.bin/ktrdump/ktrdump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/ktrdump/ktrdump.c b/usr.bin/ktrdump/ktrdump.c index bbe8fb19aae9..82ff0ebdf8d7 100644 --- a/usr.bin/ktrdump/ktrdump.c +++ b/usr.bin/ktrdump/ktrdump.c @@ -298,6 +298,8 @@ dump_entries: continue; next: if ((c = *p++) == '\0') break; + if (c == '%') + continue; if (parm == KTR_PARMS) errx(1, "too many parameters in \"%s\"", desc); switch (c) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112300709.1BU791q0032376>