Thread View: net.4bsd-bugs
1 messages
1 total messages
Started by uwvaxsolomon
Sat, 06 Mar 1982 08:13
bug in uucp
Author: uwvaxsolomon
Date: Sat, 06 Mar 1982 08:13
Date: Sat, 06 Mar 1982 08:13
23 lines
969 bytes
969 bytes
Rummaging idly through the source for uucp, I discovered a flagrant
subscript violation. I don't know whether it causes any problems,
but it probably should be fixed. The bug is in the file conn.c,
at the end of the function expect():
The lines:
*rp = '\0';
if (rp >= rdvec + MR)
return(FAIL);
Should read:
if (rp >= rdvec + MR)
return(FAIL);
*rp = '\0';
(rdvec is declared "static char rdvec[MR]", so *(rdvev+MR) is the
next position immediately AFTER rdvac).
I haven't checked, but programmers tend to do things in a stylized way,
so I wouldn't be surprised if this error occurs elsewhere.
By the way, I occationally find a core file in /usr/spool/uucp owned by
uucp. Has anybody else noticed that?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads