nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] m_getfld() interface

2012-12-26 23:04:58
There is a problem on the m_getfld branch when BUFSIZ is
small, say 1024.  test/post/test-sendfiles, of all things,
will reveal it.  So will mhlist on a suitable message with
a base64-encoded part.

The problem is due to get_content() (in mhparse.c) relying
on ftell(), but that no longer works with the big slurps.
At this point, I don't know how best to fix it.  It'd be
nice if all changes could be restricted to m_getfld.  But,
this looks like a case where it should provide an interface
to access the stream position.  There aren't that many call
sites (16, I think).

And fseek() is likely perilous for the same reason.

David

_______________________________________________
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>