Date: Tue, 4 Apr 1995 14:00:02 -0700 From: vode@hut.fi To: freebsd-bugs Subject: bin/298: sed bug Message-ID: <199504042100.OAA23300@freefall.cdrom.com> In-Reply-To: Your message of Mon, 3 Apr 1995 22:55:59 %2B0300 <199504031955.WAA20210@phobos.fipnet.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 298 >Category: bin >Synopsis: sed crashes because of uninitialized structure >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 4 14:00:01 1995 >Originator: Kai Vorma >Organization: >Release: FreeBSD 2.1.0-Development i386 >Environment: FreeBSD-2.1D >Description: Sed dumps core when linked with some coalescing malloc because it doesn't initialize malloced structure. >How-To-Repeat: Link sed with csri-malloc and run TEST/hanoi.sed >Fix: *** compile.c Fri May 27 15:32:39 1994 --- compile.c.new Mon Apr 3 17:10:02 1995 *************** *** 217,222 **** --- 217,224 ---- if (!*p) p = NULL; cmd2 = xmalloc(sizeof(struct s_command)); + cmd2->nonsel = cmd2->inrange = 0; + cmd2->a1 = cmd2->a2 = NULL; cmd2->code = '}'; *compile_stream("}", &cmd->u.c, p) = cmd2; cmd->next = cmd2; >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504042100.OAA23300>