Acmcl2.385 net.bugs utcsrgv!utzoo!decvax!ucbvax!ihnss!cbosg!harpo!floyd!cmcl2!salkind Sun Mar 28 17:19:54 1982 UUCP Bug (brl-bmd.115 followup) There are several other minor bugs in expect(): 1) there can be a reference past the end of the statically allocated array rdvec (reported by someone else already) 2) the alarm isn't reset (disabled) The fix is simple. In expect(), change the lines if ((*rp = nextch & 0177) != '\0') rp++; *rp = '\0'; if (rp >= rdvec + MR) return(FAIL); to if ((*rp = nextch & 0177) != '\0') rp++; if (rp >= rdvec + MR) { alarm(0); return(FAIL); } *rp = '\0'; _________ Lou Salkind cmcl2!salkind ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.