Date: Thu, 28 Nov 2019 06:14:05 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 242276] lang/pcc: pcc(1) cannot handle missing argument of option Message-ID: <bug-242276-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242276-7788>