Hi,
On Thu, Sep 25, 2014 at 03:21:18PM +0200, Steffen Nurpmeso wrote:
> Hmm, it seems i was too fast.. The soft NLs then add data
> themselves, so what do you think about
>
> bytes = len * 3;
> lines = bytes / QP_LINESIZE;
> len += lines;
>
> bytes = len * 3;
> /* Trailing hard NL may be missing, so there may be two lines.
> * Thus add soft + hard NL per line and a trailing NUL */
> lines = (bytes / QP_LINESIZE) + 1;
> lines <<= 1;
> bytes += lines;
> len = ++bytes;
I'm sorry, I just don't get it. :-( It's either some kind of corner
case that I'm not aware of or I'm simply too stupid. :-) How can the
soft NLs add data? They're part of the encoded string. Your code
suggests that soft NLs get added to the input stream and that they, too,
will be encoded ("again").
Whatever, from my POV, the original bug is fixed and I'm happy with how
things are now. :-)
(I guess I'm only embarrassing myself with this e-mail. Just wanted to
give you some feedback, though.)
Cheers!
Peter
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users