[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] m_getfld() interface
From: |
David Levine |
Subject: |
Re: [Nmh-workers] m_getfld() interface |
Date: |
Thu, 27 Dec 2012 00:04:36 -0500 |
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