piet@mcvax.UUCP (09/06/84)
<...>
Try handling a mail to /bin/rmail that has a (uucp) "From " line like:
>From @abc-de-fg.arpa:@hij-klm-nopqr:user%stu-vwx-yzabc@def-gh-ij.ARPA...etc.
and watch it dump core.
The fix is easy: the complete user part is supposed to fit in an array
(ufrom) that's only 64 bytes long. Increase that to a more reasonable
length, e.g. BUFSIZ.
--
Piet Beertema, CWI, Amsterdam
...{decvax,philabs}!mcvax!piet
jaap@haring.UUCP (09/07/84)
<Is this a bug fix?:>
Problem:
>From @abc-de-fg.arpa:@hij-klm-nopqr:use...
makes /bin/rmail dumps core. (Core???:-))
Solution:
Increase an array size (ufrom) from 64 to, let's say, BUFSIZE.
This is not a flame to the Piet's article. I guess, that increasing
64 to BUFSIZE will solve some problems. I just can not ignore
remembering all the other bug fixes to the net software (and UNIX software
in general). A lot of the fixes are arbitrary. Just raise a constant
until something else breaks (and maybe a more interesting problem pops
up, like parsing the "``quoted'' From" line).
Of course /bin/rmail has never been designed, hacked or coded to do the
job it is suppose to handle now. I just cannot help wondering whether the
next `news release' (3.0.0?) will still inspire to `Bug Fixes' like
above mentioned.
jaap (mcvax!jaap)