From nobody Sat Apr 15 16:33:02 2023 X-Original-To: bugs@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 4PzJlM08J5z45d64 for ; Sat, 15 Apr 2023 16:33:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PzJlL4R5Mz3J97 for ; Sat, 15 Apr 2023 16:33:02 +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=1681576382; 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=6qZFV31Sg4zVO5EwwhyiJcZ4CydTSSVaNMnnHsj2q50=; b=H3gE9FcaCdZZp3RquLjFmqiC1ncLNxyWKaUD485FUZ2/WOYVcSzGN7t4jG/vF+xSLcWjEP nNhKUvWg8L59NQlHf38bAhlGy115YFU9iLSmuwgBoCiASMcVRvE5htvsVBPdt/2V/u/yTI Cq3VzZEIYxFS0re7j5ovcUaqeJ+mKfO9ujjO2giemof1ZbfbOsRgPCoZG6LbtvJVT3aQ64 v3xFCu88Gi+PnmhfM/ygTX85W0mopiPEyibgDvw7eS2JMjnJZurDE6fpbSSMfBQdAQCxWX jwZhFri9fWmOS6VhxqgkalV+N7F2czu8X/2rcp+YTpjXCu/89uqahJLHSGYvgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681576382; a=rsa-sha256; cv=none; b=JGLeEe8fqPAKn2Qb3cjSzOmyYmwOF0FPZwLt8z/LSlHFIBD2sL8OCdMKSwY5KwI7BxPqzR f/yGT0QZpEjJy/xJWymz8ATKfIzeExaW7n2drq+4xYgrki8Ql9/zDfd+o3va6zVYu4ScIx aSwKVUmgTDNcJjW2ajnvnKMSbDl2ov+Nc8A9fPr2tbZT1DeXM4DJrw78fIUkrU+pTJWwhC rPhCvlYbW4OovXH4b/c8KWKCNTokQcSGlf2epwxYJ0ulIBO2XGDfzjQdYMNW1qxD2yBoSu fDbJMOxZX2xZWEsDK0Ekxg1eAapO+no63nghjLGnYxqclGKFsRzuJgDMD55bEw== 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 4PzJlL2Sd3z1Ck9 for ; Sat, 15 Apr 2023 16:33:02 +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 33FGX2Ix021459 for ; Sat, 15 Apr 2023 16:33:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33FGX27m021458 for bugs@FreeBSD.org; Sat, 15 Apr 2023 16:33:02 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: bugs@FreeBSD.org Subject: [Bug 270867] xargs -E is not working properly Date: Sat, 15 Apr 2023 16:33:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: yuripv@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270867 --- Comment #3 from Yuri Pankov --- (In reply to Yuri Pankov from comment #2) And there's a commit that changed strcmp() into strncmp(): commit 4aeb63826e0f9ce817b16abdb1501490307d857c Author: Juli Mallett Date: Sat Dec 31 09:06:45 2005 +0000 Check the entire length of the current argument for the EOF string with= -E, but don't expect a proper ASCII string to exist right here right now, d= on't use strcmp(3) which checks for a NUL. As we're still building the argu= ment up, the next character might be garbage. It would probably be just as = safe to temporarily write a NUL there, but if we've reached the end of argument memory that might not be the best idea, I think. It's unclear. Doing it this way seems to meet the most with the original intent. PR: 85696 Prodded by: stefanf Checking if what's described in bug 85696 is still a problem with strcmp().= .. --=20 You are receiving this mail because: You are the assignee for the bug.=