K 10
svn:author
V 6
iulius
K 8
svn:date
V 27
2010-08-05T19:48:31.619622Z
K 7
svn:log
V 731
A single header field line is limited to 998 bytes, per RFC 5536.
innd was previously accepting, and also generating Xref: header field
lines, up to 1022 bytes.

Use new MAXARTLINELENGTH and MED_BUFFER constants instead of
MAXHEADERSIZE in the code.

Update the test suite.


Meanwhile, fix two bugs in the generation of the Xref: header field:

* When resizing the buffer, extra place for a CRLF that may be added
  by a continuation line is not taken into account.  Consequently,
  when p[0] = '\r' and p[1] = '\n' are used, a segfault may occur.

* When comparing to MAXARTLINELENGTH, the final CRLF is not taken into
  account ("+2" is missing in the count), so the generated Xref: header
  field might end up with 1002 bytes!

END
