The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=6562157dfad0d18447cfcac08435f7ffdb8fa46c
commit 6562157dfad0d18447cfcac08435f7ffdb8fa46c Author: Kristof Provost <k...@freebsd.org> AuthorDate: 2024-10-02 06:42:56 +0000 Commit: Kristof Provost <k...@freebsd.org> CommitDate: 2024-10-10 12:10:40 +0000 pfctl: avoid possible SIGSEGV when wrong tos option Obtained from: OpenBSD, haesbaert <haesba...@openbsd.org>, 934eaac797 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D46933 --- sbin/pfctl/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index ad25f1996d36..f198dcb0b054 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -4214,7 +4214,7 @@ tos : STRING { | NUMBER { $$ = $1; if ($$ < 0 || $$ > 255) { - yyerror("illegal tos value %s", $1); + yyerror("illegal tos value %lu", $1); YYERROR; } }