[3362] in Athena Bugs
(RT/PC) Version 6.3B: olc_browser
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Oct 5 05:14:27 1989
Date: Thu, 5 Oct 89 05:14:07 -0400
From: Jonathan I. Kamens <jik@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: bug-olc@ATHENA.MIT.EDU
System type, version: (RT/PC) Version 6.3B
System name: bill-the-cat
What's wrong:
When olc_browser starts up, it initializes curses using the
initscr() function. However, it does not check the return value
of this function. If a workstation is low on memory, this call
will fail, and a future call to a curses function will result in
a segmentation violation or bus error.
What should have happened:
Return values should be checked, and the program should exit with
an error message if initscr() fails. There is a patch to cref.c
and display.c (in /source/4.3/usr.athena/olc/lib/browser) in:
/afs/sipb/user/jik/cores/rt/olc_browser/source/diff
Please let me know when someone who can do something about this
has copied this patch out of here and/or looked at it and
understood what needs to be done so I can delete it. There is
also a working rt olc_browser binary in that directory.
jik