From nobody Wed Feb 09 11:50:40 2022 X-Original-To: ports-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 A809419A6005 for ; Wed, 9 Feb 2022 11:50:40 +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 4Jtyr0217nz4sC1 for ; Wed, 9 Feb 2022 11:50:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 266D84917 for ; Wed, 9 Feb 2022 11:50:40 +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 219BoeZx026996 for ; Wed, 9 Feb 2022 11:50:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 219BoebO026995 for ports-bugs@FreeBSD.org; Wed, 9 Feb 2022 11:50:40 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: ports-bugs@FreeBSD.org Subject: [Bug 261819] ports-mgmt/portfmt: portclippy will core dump for unknown command line options Date: Wed, 09 Feb 2022 11:50:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: martin@waschbuesch.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tobik@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644407440; 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=xDXUeEOFqiMJZ+s0O8BdPXCLouxg6Qcz5u7mkb/+Zog=; b=ttqPOYoZz7aRCUWGct3y0xgVFHAYPjW0+d2p3AmIx5H9EFKw3PPQQ0A1DcCTJNOol1oUYo l4wJDGdFfhf+2IkUD/CK5BFUjUpvSH2XitpHDccCWnnKYRbOeuyi6sA532HnydGyYPAPch F4EQ4LUlUV1GtV4j3yP8/s3USKnQgKGJlEhb8oulDvcEWfAFSvIm1vGfSvVzgHpMi7zdHe Rwqz7bQ1wfUBvQvBc+X4Z72oUH6LgXDNrcTaQwppQQQ388Oj0v405a4qzXKgIYqqfV6oI+ mf06DxXqpT7ykylSlDA5RCO4sLlfhHJ1S8aNP8aY8lIv4cMTK06Gsw8Q2+2H/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644407440; a=rsa-sha256; cv=none; b=TcIvW/H1GshvxoUt7r7S8ZN6xxlVNi/ZMQ50B0W2f/fIptw3Rkj/7KzuJDSbSOMn2cSmTA 9qZmdRWQRzxZaL6ZMLcnHteLl1eUOVBBgBSzm1bP7IgRXyAmwnOfOJJdQOyAtjiATklXWU w53crt2hLMMsfUxrxcCfGN4MBilybmx+aDzhLcqcVGPMaIM6bxuky8MwcNzCXaFMS8vzle 1a67QcOA+IvICjEZPBhbelKKCAyT/Do+YedOtzUtr0kleO7vZF8XL3ApZPgv64Yr42Ug9a 4B4f3rBgWT7cMT0zRLHYWTAW5GHkeFX7jFYeLA/JImgb3eSWeDXC4jntbnft0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261819 Bug ID: 261819 Summary: ports-mgmt/portfmt: portclippy will core dump for unknown command line options Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: tobik@freebsd.org Reporter: martin@waschbuesch.de Assignee: tobik@freebsd.org Flags: maintainer-feedback?(tobik@freebsd.org) portclippy knows only one command line option: --strict However, the behavior when giving unknown options seems broken: While unknown options with just one '-' produce output like this: root@dev:~# portclippy -blub portclippy: invalid option -- b usage: portclippy [--strict] [Makefile] If you give anything other than --strict using '--', it will just crash: root@dev:~# portclippy --blub Bus error (core dumped) (Arguably, even in the first instance, it seems weird the message complains about the command line as if only one letter had been given.) I have only tested this on 13.0-RELEASE on amd64. --=20 You are receiving this mail because: You are the assignee for the bug.=