From nobody Fri Sep 27 09:26:13 2024 X-Original-To: standards@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 4XFQ7n5snyz5Xm3T for ; Fri, 27 Sep 2024 09:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@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 4XFQ7n3mwSz4SfL for ; Fri, 27 Sep 2024 09:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727429173; 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: in-reply-to:in-reply-to:references:references; bh=yX6x1emySIZR9ylsLh/6edm19ebllEyv8GhJPF20HZk=; b=KZf/LqcHdWn8yfQeNchihDOC4+oJ0euOJNzBpKQvlqnlljcEk16uKKnr1g8WZZ9UqQTlhP iQA40Ra9AY6dmkf6MS++k04GIcOACYOQT+fkTS3uXOCTwY3yXc24GyUpkK1143JVQ+jL+J cy1BVfsHDxDQqS/Cwa2oQ3QYRmydB5nEkUF+UGRnXuA7WiuCSXTbieA8HIfwAqVN9Sb1Pc v+0HNjeUYXp7GD9LX5JEM8FRro88PyT4Sru9MJ3di/eGav5ySqlkAqgWxHskze8ESslNBE pTSX7Byq0gpJ0ZhCvRothTlPCbH5jRE/Mq5HHY5mfXpp9T801z6Af9kXsny5HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727429173; a=rsa-sha256; cv=none; b=JvUG2/6aDcXWagCUvbE49rIv2oGImYDxzmBr6XLA6VG6o08qiVNm9oCxKVFQg/E3nnAkGb PLuDEpKRnHiJqTa4dFnDW0yzi/ELFYxSTrdxVA/QPQIORDhh60dxRvFlNKaNquvtlVHG+y 10em0U3y3c9Y32xf1hIzhngl49luT34TabDnYOSTK92N5cNEBZ/ExQB4LljlZf5StOmIz5 JsFjqZL65nK49ZTGgFTwvZFCMELLjwBBPrVDrRcqfqz3ML4HOP1oEk2FTz2dbh8ZXG2blR CpUhGP2fJmZxcK4zPxpyL882BJ9JRNaJINncldzjC3DcdhH/RELM0N9F1xWxnw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4XFQ7n3GDPzbMc for ; Fri, 27 Sep 2024 09:26:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48R9QDPx044900 for ; Fri, 27 Sep 2024 09:26:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48R9QDDq044898 for standards@FreeBSD.org; Fri, 27 Sep 2024 09:26:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 281710] RegEXP bug in bracket expression [^...] - sed(1), grep(1), re_format(7) Date: Fri, 27 Sep 2024 09:26:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: erichanskrs@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281710 --- Comment #14 from Eric --- (in reply to Kyle Evans comment #10) Hi Kyle, I have a question and related request as it seems that NetBSD has pulled in (Feb 23, 2021) FreeBSD's code of lib/libc/regex/regcomp.c wrt the error in function singleton(): https://github.com/NetBSD/src/commit/1ee269c3a208a14da224b6e9917e2e9798961f= ff You, or you may know who else within the team of FreeBSD core/developers, likely know how to best liase with NetBSD and inform them of the problem. I don't have anything setup OS wise or account wise regarding NetBSD, so I haven't done any actual testing. =3D=3D=3D=3D=3D -- NetBSD code situation view For NetBSD's main "trunk", these parts seem relevant: https://github.com/NetBSD/src/blob/trunk/lib/libc/regex/regcomp.c#L1139-L11= 43 https://github.com/NetBSD/src/blob/trunk/lib/libc/regex/regcomp.c#L1733-L17= 54 and the commit "sync with FreeBSD" as of Feb 23, 2021: https://github.com/NetBSD/src/commit/1ee269c3a208a14da224b6e9917e2e9798961f= ff For NetBSD 10.0, released as of NetBSD 10.0 (Mar 28, 2024), these parts seem relevant: https://github.com/NetBSD/src/blob/netbsd-10/lib/libc/regex/regcomp.c#L1141= -L1145 https://github.com/NetBSD/src/blob/netbsd-10/lib/libc/regex/regcomp.c#L1735= -L1756 and seems to contain the buggy singleton function. By the looks of it seems that the singleton function issue isn't in NetBSD 9 code: https://github.com/NetBSD/src/blob/netbsd-9/lib/libc/regex/regcomp.c#L831-L= 835 However, I'm unfamiliar with their github branch structures of their minor releases as the latest release of NetBSD 9 seems to be 9.4 (April 20, 2024= ): https://www.netbsd.org/releases/formal-9/NetBSD-9.4.html -- OpenBSD code situation view For OpenBSD, based on https://github.com/openbsd/src/blob/master/lib/libc/regex/regcomp.c#L674-L6= 78 it looks like they haven't implemented any optimization like the singleton() function. --=20 You are receiving this mail because: You are on the CC list for the bug.=