home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / bugs / 82 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.sys.sgi.bugs
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!benoist
  3. From: benoist@netcom.com (Tom Benoist)
  4. Subject: libimage iopen() bug
  5. Message-ID: <1993Jan6.200247.24300@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Wed, 6 Jan 1993 20:02:47 GMT
  8. Lines: 27
  9.  
  10. Some wont consider this a bug.
  11. I also understand that 4Dgifts is officially unsupported demoware.
  12. Anyway, the problem:
  13.  
  14. /usr/people/4Dgifts/iristools/libimage/open.c
  15.  
  16. If iopen() fails because its not sent a readable file
  17. in the proper format, it returns without:
  18. 1. Freeing up Memory it allocates using calloc
  19. 2. closing the file descriptor  
  20.  
  21. The result is that using this code in an app that queries the
  22. user for filenames, you run the good chance of eventually
  23. running over the Max Limit of 100 for open files.  As we all
  24. know, after that point File IO basically stops working and
  25. your app becomes "quite impotent"
  26.  
  27. Considering the assumed usage of the library for command line
  28. image apps and of course the other amazing gifts brought to us
  29. from Mr Haeberli, all is forgiven.
  30.  
  31. Anyway, this one bit me, so I thought it should be mentioned.
  32.  
  33.  
  34. -Tom Benoist
  35. benoist@netcom.netcom.com
  36.  
  37.