git: dcb724b5a7d9 - main - ktrdump: properly parse %% in the format string
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Dec 2021 07:09:01 UTC
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) {