Issue 21297

Summary: The system has a bug when decode base64 code in method decodeHeaderFieldBody() of INetMIME;
Product: Build Tools Reporter: tianyongwei <tianyongwei>
Component: codeAssignee: Stephan Bergmann <stephan.bergmann.secondary>
Status: CLOSED FIXED QA Contact: issues@tools <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1 RC5   
Target Milestone: OOo 2.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description tianyongwei 2003-10-16 07:22:24 UTC
By the old source code, you can&#8217;t decode the base64 code that is end with one 
or two&#8216;=&#8217;.
INetMIME ::decodeHeaderFieldBody()
{
In line 3249.
Error code: nCount = nShift == 6 ? 2 : 1;
True code: nCount = nShift == 6 ? 1 : 2;
}
Comment 1 Martin Hollmichel 2004-02-20 11:39:24 UTC
mh->sb: please have a look.
Comment 2 Stephan Bergmann 2004-02-20 13:40:02 UTC
accepted
Comment 3 Stephan Bergmann 2004-04-06 09:25:24 UTC
Patch applied (also added tools/workben/inetmimetest.cxx).  This fix should pose
no backwards-compatibility problems with chaos mail im-/export, as that export
only uses quoted printable, not base64.
Comment 4 Stephan Bergmann 2004-06-11 09:38:47 UTC
Test: tools/workben/inetmimetest.cxx 1.1.2.1.
Comment 5 Stephan Bergmann 2004-06-28 09:17:56 UTC
closed