*BSD News Article 14514


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!usenet.ins.cwru.edu!odin!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: Building profiled libc library gets SIGSEGV?
Date: 15 Apr 1993 12:36:35 GMT
Organization: Information Network Services, Case Western Reserve University
Lines: 20
Message-ID: <1qjksj$oip@usenet.INS.CWRU.Edu>
References: <C5FHqr.L8t@unx.sas.com> <9304150227.ac08704@gate.demon.co.uk> <C5I7Iq.9F4@kithrup.com>
NNTP-Posting-Host: odin.ins.cwru.edu

In article <C5I7Iq.9F4@kithrup.com> sef@kithrup.com (Sean Eric Fagan) writes:

>Or fix bash, your choice.

No need, I've already done it.  The problem is in print_cmd.c; the
stupid 5000-character buffer that cprintf() uses is being overflowed.
For an incredibly dirty but expedient fix, change that to 10000.  A
better fix is to use a dynamic buffer; that's what I've installed here.
I'll look at making a version of print_cmd.c that will work with bash
1.12 available somehow.

Chet



-- 
``The ballpark is quiet now, save for the sound of droplets landing.  That
  is as it should be.  For today there are two fewer boys of summer.''

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu