From owner-freebsd-ports-bugs@freebsd.org Thu Nov 28 06:14:06 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6EE441C5E17 for ; Thu, 28 Nov 2019 06:14:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47NnQk2MgKz47CV for ; Thu, 28 Nov 2019 06:14:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4F4861C5E16; Thu, 28 Nov 2019 06:14:06 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4F0651C5E13 for ; Thu, 28 Nov 2019 06:14:06 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NnQk1TMZz47CT for ; Thu, 28 Nov 2019 06:14:06 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1738C2192D for ; Thu, 28 Nov 2019 06:14:06 +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 xAS6E5NG001035 for ; Thu, 28 Nov 2019 06:14:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xAS6E5Op001026 for ports-bugs@FreeBSD.org; Thu, 28 Nov 2019 06:14:05 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 242276] lang/pcc: pcc(1) cannot handle missing argument of option Date: Thu, 28 Nov 2019 06:14:05 +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: msl0000023508@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: joel@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 attachments.mimetype attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 06:14:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242276 Bug ID: 242276 Summary: lang/pcc: pcc(1) cannot handle missing argument of option Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: joel@FreeBSD.org Reporter: msl0000023508@gmail.com Assignee: joel@FreeBSD.org Flags: maintainer-feedback?(joel@FreeBSD.org) Attachment #209500 text/plain mime type: Created attachment 209500 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D209500&action= =3Dedit lang/pcc/files/patch-cc_cc_cc.c For example: $ pcc -I Segmentation fault (core dumped) $ gdb --args pcc -I GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD] ... (gdb) r Starting program: /usr/local/bin/pcc -I Program received signal SIGSEGV, Segmentation fault. 0x28205c1d in strlen () from /lib/libc.so.7 (gdb) bt #0 0x28205c1d in strlen () from /lib/libc.so.7 #1 0x28127bd0 in strdup () from /lib/libc.so.7 #2 0x0804c3ff in ?? () #3 0x0804c0e4 in ?? () #4 0x08049b03 in ?? () #5 0x08048d6b in ?? () #6 0x08048c38 in ?? () #7 0x00000000 in ?? () The attached patch fix the incorrect comparison of counter 'lac', in functi= on 'nxtopt'; it also changes the loop control statement to prevent accidently lowering 'lac' to an negative value. The patch was merged with the previous patch for same source file 'cc/cc/cc= .c'. --=20 You are receiving this mail because: You are the assignee for the bug.=