From nobody Mon Apr 17 20:22:18 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 4Q0dky6nTvz457mx for ; Mon, 17 Apr 2023 20:22:18 +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 4Q0dky5frkz4FXB for ; Mon, 17 Apr 2023 20:22:18 +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=1681762938; 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=SaOC2+YxTOl7GNu9FpK3dkyVqYSvGAo+PmW3IxCvp/4=; b=Yqow2tcxgusZZDHHP3OX5ZKdek+3v71y3tLDKskO5NcR6RNEmhFmO742QFTvEc808y2jk+ zhKF01KC0jHSmRNFHuL5Ooq5R+2wOhki7h7pb1kN4Lx+X6RF0H+syPOxUSyQx+Hx1cKLAD cxc1DSS+FJIQBud6hj1G92Vy82ullOMYx7QvnhVXpg4xKxly5M/ZUyS8WJ/82Aj5Y72S9m YPZDd2TcPXwDAVIKCQvYuwLBCS9bXtY3y2Zwdhi48A7KgUPVYVo5GJVHeTWLvK9hbiNkRn e+N/yd9bHTFnTmZkrc+zNmFIa33f3TioyHCz61hQJ69zk7PBt/mdnY/QcOGUJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681762938; a=rsa-sha256; cv=none; b=AigSIrApVXHwHgv72rRqUZsa9dYxY9qxmcVOomhqh4yvo1+tx91Lqi+XqvRsmOjsTYOshK 0iVXYCCGowFNosId8eVQfLHm1OI32SZmClskgcpQKdnl4lnWQkXmq5/uD1pfWmZaxQjshL kT1cWdonQYrOZcIHFjKhC/SmQsc8f3AANVG8Rh9EZxDJUeS8Il9nvGx4JeYu1wfUk+XWhz HXq6vRwy5cCjnOmQ6tb5zk5UxomFOgL2UTl4j9PyQ0NWzdViaYadRG2wykXKQCKhEGgMoN HCNi+JHxlf2DfrsQSn3HVNpHtSvWcZeITC5XW9JSFrDFmPnwufec5xaHLGW7pw== 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 4Q0dky4mV6zk9d for ; Mon, 17 Apr 2023 20:22:18 +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 33HKMI2A084849 for ; Mon, 17 Apr 2023 20:22:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33HKMIcF084848 for bugs@FreeBSD.org; Mon, 17 Apr 2023 20:22:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Mon, 17 Apr 2023 20:22:18 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@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 #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D21ef48af5c0f4ed85a5f42855b5a8d58b= 5431103 commit 21ef48af5c0f4ed85a5f42855b5a8d58b5431103 Author: Yuri Pankov AuthorDate: 2023-04-17 19:14:33 +0000 Commit: Yuri Pankov CommitDate: 2023-04-17 20:20:03 +0000 xargs: improve foundeof check for -E 4aeb63826e0f got it almost correct (we can't use strcmp() here as current argument isn't guaranteed to be NUL-terminated), but we also need to check that current argument length is equal to that of eofstr. PR: 270867 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D39583 usr.bin/xargs/xargs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=