home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0013 < prev    next >
Encoding:
Text File  |  1981-05-28  |  706 b   |  17 lines

  1. Aucbvax.425
  2. NET.v7bugs
  3. utzoo!duke!vax135!ucbvax!mark
  4. Mon Oct 13 18:59:49 1980
  5. cu
  6. Cu seems to keep track of what the user types in a line buffer.
  7. There is no check for overflowing this buffer.  Since one can easily
  8. go for a long time in a screen editor without getting a return, it is easy
  9. to core dump the receive process.  The following patch seems to fix it:
  10. at the beginning of the routine rd, before *p++=c; add
  11.     if (p >= &b[sizeof b]) p = b;
  12. This fix was arrived at quickly, and it is possible that the author will
  13. prefer a different fix, such as
  14.     if (p >= &b[sizeof b]) p--;
  15. after *p++=c;.  Actually, it seems like cu has little business keeping
  16. a line buffer unless the first character was a tilde.
  17.