From 6562157dfad0d18447cfcac08435f7ffdb8fa46c Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Wed, 2 Oct 2024 08:42:56 +0200 Subject: [PATCH] pfctl: avoid possible SIGSEGV when wrong tos option Obtained from: OpenBSD, haesbaert , 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; } }