Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2024 12:37:22 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6562157dfad0 - main - pfctl: avoid possible SIGSEGV when wrong tos option
Message-ID:  <202410101237.49ACbMqB006443@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6562157dfad0d18447cfcac08435f7ffdb8fa46c

commit 6562157dfad0d18447cfcac08435f7ffdb8fa46c
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-10-02 06:42:56 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-10-10 12:10:40 +0000

    pfctl: avoid possible SIGSEGV when wrong tos option
    
    Obtained from:  OpenBSD, haesbaert <haesbaert@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;
 			}
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410101237.49ACbMqB006443>