Date: Wed, 16 Jun 1999 02:46:12 -0700 (PDT) From: tronkko@hytti.uku.fi To: freebsd-gnats-submit@freebsd.org Subject: gnu/12238: bc 1.04 crashes with long formula typed into one line Message-ID: <19990616094612.0E3431532F@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 12238 >Category: gnu >Synopsis: bc 1.04 crashes with long formula typed into one line >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 16 02:50:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Toni Rönkkö >Release: 3.1 >Organization: >Environment: FreeBSD freebsd.koti.fi 3.1-RELEASE FreeBSD 3.1-RELEASE #12: Sun May 16 21:07:35 EEST 1999 tr@freebsd.koti.fi:/wrk/kernel-sources/sys/compile/CUSTOM i386 >Description: bc 1.04 crashes with long formula typed into one single line (buffer overflow perhaps). Everything works fine if I manually split long formulas into several lines, althought I personally hate to do that. >How-To-Repeat: start bc and type the following formula into one single line: 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1 This one also crashes bc when typed into one line: 1 + 1 >Fix: I downloaded bc-1.05a from ftp.gnu.org and it worked fine. Perhaps you could update the version of bc shipped with FreeBSD? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990616094612.0E3431532F>