nmh-workers
[Top] [All Lists]

[Nmh-workers] corruption when attaching all-null files

2014-05-07 11:06:51
in testing the marker line format, i created a bunch of files of
varying sizes in order to attach them.  by chance, i used dd from
/dev/zero to create the files, so they all consist of null characters.

it turns out that when i attach such a file, something goes wrong, and
i end up with the mime header for the attachment, but an empty part, and
mhlist complains about "bogus multipart content"

if i attach many such files, i get mangled content, looking a log like
buffer overflow.

if i change all the nulls to ^C chars  ("sed -i 's/\x00/\x03/g' testfile*")
then everything seems to work correctly.

i haven't dug further.  and this is on master.  i also haven't tested
the 1.6 branch.

paul
----------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 60.3 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>