From nobody Thu Oct 10 12:37:22 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XPTmL4nzHz5Z03g; Thu, 10 Oct 2024 12:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XPTmL1kvFz4HF8; Thu, 10 Oct 2024 12:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728563842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jlCTD3LRQb54vWbiVRrzR4BQgHGsp1HsOasAUA5N1Lg=; b=Su61vqnuk9ste33QlmPblxkuX0hRVow9U+LaHX+B/L3um/8oZlYbFihNRYbd1tKYmxfm5T sXO9XUxowEBM4cAGUl0sLEKzZPKoHS4H5sS6mmNOfLIX8xV5rDX8aR0efc/TSdIftwa4MV NRjBf/vNpFzJ1FEQszcZZchr38ozAnhqaDFvj54F9ebOHm0XR5SrjLbRibtEExMl2xVVM5 1qY9xwXdpVpxxurgqLBbv75xwblPfxQh/3EzaxhKpnyufjbUlBkjkJfgzmcv1P6oYqXZ8s +tSZe13JSWm9bZcYez/peNExcFniGjsJvysxrCKEWH5I1tQawZ68koMyd2wdzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728563842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jlCTD3LRQb54vWbiVRrzR4BQgHGsp1HsOasAUA5N1Lg=; b=QCkbWKatDA/2UyJC3mEyIW0052v+hg+N8RR393nmWBgfgM1SvTGhbya2DEukoqN8bdYZyE W6QYH8cYLbfUXF2dpJdmc4er9E5LT0wTdUsYEoE7NFBmyWjMHgwpAyOIs1JTz3YNOVqbbC XvL9f4+nZNBlVcRJPCPYEK6qP2bvhQTyMTqXDqEnaKPM+47FJ76UI1tgxC4jdFBV2koe4G Le5PPejt59NCVW7YisM2xeQxIhOXU9LGYEf5pDF4qUAP92EujiP1cmWFByJX0XYcm47h3F EeblptnFwSdrU4GfkKFC9WG+GoAdf7Ee2pFO1yvYJDA8tZWdL2or++IEgWYaZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728563842; a=rsa-sha256; cv=none; b=JiDM0hTM0nzdP5LEXK+2lgAS7ps9dRB5xcbKSnVNYG8FjPJ/k9u1PBxeQmyIXl96G76vYy lPZpstwV4q5kafDAuT5pRuj2pnaHC4fx3QY0o7ZmOgZxpKkYAzSwAfzn3gw8jr6s1lVfuk yrS1R64guskpRrP1murrUHguzzzaCUwYp7S4iwqEw7/hvgHWhX4cWQb+yrt6c2xKbzjG8l aisSrN0ga9FtyKBOowG/6dwAYDb+ER/A4Qc24PzMexxNcaAJP5ZEURsw4MBtP6gqb9GQhR 7/v5XqnIY05WQU6k9JVJyA5TPkXWT4KMYJ/GT59VWbVECcZOHkcVZ3UWRLUGGQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XPTmL1JghzxmP; Thu, 10 Oct 2024 12:37:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49ACbMBU006446; Thu, 10 Oct 2024 12:37:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49ACbMqB006443; Thu, 10 Oct 2024 12:37:22 GMT (envelope-from git) Date: Thu, 10 Oct 2024 12:37:22 GMT Message-Id: <202410101237.49ACbMqB006443@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 6562157dfad0 - main - pfctl: avoid possible SIGSEGV when wrong tos option List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6562157dfad0d18447cfcac08435f7ffdb8fa46c Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=6562157dfad0d18447cfcac08435f7ffdb8fa46c commit 6562157dfad0d18447cfcac08435f7ffdb8fa46c Author: Kristof Provost AuthorDate: 2024-10-02 06:42:56 +0000 Commit: Kristof Provost CommitDate: 2024-10-10 12:10:40 +0000 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; } }