*BSD News Article 8342


Return to BSD News archive

Xref: sserve comp.databases.ingres:1784 comp.unix.bsd:8395
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!agate!spool.mu.edu!uunet!mcsun!Germany.EU.net!Informatik.Uni-Dortmund.DE!snorre!joergens
From: joergens@snorre.informatik.uni-dortmund.de (Ulrich Joergens (PG211))
Newsgroups: comp.databases.ingres,comp.unix.bsd
Subject: Error in ingres8.9 for 386bsd, libq/IIw_left.c
Date: 30 Nov 1992 09:15:38 GMT
Organization: CS Department, Dortmund University, Germany
Lines: 26
Sender: joergens@snorre (Ulrich Joergens (PG211))
Distribution: world
Message-ID: <1fcm3qINNg7b@fbi-news.Informatik.Uni-Dortmund.DE>
NNTP-Posting-Host: snorre

Hello,

I detected an error in function IIw_left which leads to a core dump.
The function modifies const char * argument string with fatal effects.
Modifying the function in file libq/IIw_left.c as follows:

insert the line

  strcpy( b_st, string );

and changing

  for( a_st = b_st = string; ... )

to 

  for( a_st = b_st; ... )

solved the problem for me.

I'm working on 386bsd but I suppose this error will occur on other
platforms, too.

Bye

Uli