🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.bugs
Article #60

libimage iopen() bug

#60
From: Tom Benoist
Date: Wed, 06 Jan 1993 20:02
26 lines
1240 bytes
Some wont consider this a bug.
I also understand that 4Dgifts is officially unsupported demoware.
Anyway, the problem:

/usr/people/4Dgifts/iristools/libimage/open.c

If iopen() fails because its not sent a readable file
in the proper format, it returns without:
1. Freeing up Memory it allocates using calloc
2. closing the file descriptor  

The result is that using this code in an app that queries the
user for filenames, you run the good chance of eventually
running over the Max Limit of 100 for open files.  As we all
know, after that point File IO basically stops working and
your app becomes "quite impotent"

Considering the assumed usage of the library for command line
image apps and of course the other amazing gifts brought to us
from Mr Haeberli, all is forgiven.

Anyway, this one bit me, so I thought it should be mentioned.


-Tom Benoist
benoist@netcom.netcom.com
Technical Details
Message-ID: <1993Jan6.200247.24300@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!csus.edu!netcom.com!benoist

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.bugs
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!csus.edu!netcom.com!benoist
From: benoist@netcom.com (Tom Benoist)
Subject: libimage iopen() bug
Message-ID: <1993Jan6.200247.24300@netcom.com>
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 6 Jan 1993 20:02:47 GMT
Lines: 27