Article View: NET.v7bugs
Article #16cu
From: ucbvaxmark
Date: Mon, 13 Oct 1980 18:59
Date: Mon, 13 Oct 1980 18:59
11 lines
803 bytes
803 bytes
Cu seems to keep track of what the user types in a line buffer. There is no check for overflowing this buffer. Since one can easily go for a long time in a screen editor without getting a return, it is easy to core dump the receive process. The following patch seems to fix it: at the beginning of the routine rd, before *p++=c; add if (p >= &b[sizeof b]) p = b; This fix was arrived at quickly, and it is possible that the author will prefer a different fix, such as if (p >= &b[sizeof b]) p--; after *p++=c;. Actually, it seems like cu has little business keeping a line buffer unless the first character was a tilde.
Technical Details
Message-ID:
<anews.Aucbvax.425>Path:
arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!markShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!duke!vax135!ucbvax!mark From: ucbvax!mark Newsgroups: NET.v7bugs Subject: cu Date: Mon, 13 Oct 1980 18:59:49 +0000 Message-ID: <anews.Aucbvax.425>