Article View: comp.sys.sgi.bugs
Article #76Bug in ipastelrw.c
From: Wes Barris
Date: Mon, 11 Jan 1993 18:40
Date: Mon, 11 Jan 1993 18:40
18 lines
1220 bytes
1220 bytes
The following lines are found in
/usr/people/4Dgifts/iristools/imgtools/ipaste.lrw.c
/* allocate the memory for the pixel data to be then fed to lrectwrite */
imgbuf = (unsigned long *) malloc(xsize*ysize*sizeof(long));
imgbuf = (unsigned long *) longimagedata(argv[1]);
However, in /usr/people/4Dgifts/iristools/libgutil/imgread.c the imgbuf
is malloced for you.
base = (long *)malloc(image->xsize*image->ysize*sizeof(long));
As a result, the malloc line in ipastelrw.c is not necessary and should
be removed.
===============================================================================
Wes Barris PH: (612) 626-8090
Minnesota Supercomputer Center, Inc. Email: wes@msc.edu
Technical Details
Message-ID:
<1993Jan11.184050.12843@uc.msc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!umn.edu!noc.msc.net!uc.msc.edu!uf.msc.edu!wesShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.bugs Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!umn.edu!noc.msc.net!uc.msc.edu!uf.msc.edu!wes From: wes@uf.msc.edu (Wes Barris) Subject: Bug in ipastelrw.c Message-ID: <1993Jan11.184050.12843@uc.msc.edu> Sender: netnews@uc.msc.edu (UC Network News) Reply-To: wes@msc.edu Organization: AHPCRC, Minnesota Supercomputer Center Date: Mon, 11 Jan 1993 18:40:50 GMT Lines: 18