From nobody@FreeBSD.ORG Wed Jun 16 02:46:27 1999 Return-Path: Received: by hub.freebsd.org (Postfix, from userid 32767) id 0E3431532F; Wed, 16 Jun 1999 02:46:12 -0700 (PDT) Message-Id: <19990616094612.0E3431532F@hub.freebsd.org> Date: Wed, 16 Jun 1999 02:46:12 -0700 (PDT) From: tronkko@hytti.uku.fi Sender: nobody@FreeBSD.ORG To: freebsd-gnats-submit@freebsd.org Subject: bc 1.04 crashes with long formula typed into one line X-Send-Pr-Version: www-1.0 >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: closed >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 16 02:50:01 PDT 1999 >Closed-Date: Fri Jun 15 08:39:45 PDT 2001 >Last-Modified: Fri Jun 15 08:40:28 PDT 2001 >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: State-Changed-From-To: open->closed State-Changed-By: schweikh State-Changed-When: Fri Jun 15 08:39:45 PDT 2001 State-Changed-Why: We're now using bc 1.06 which works properly. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=12238 >Unformatted: