Issue 21297 - The system has a bug when decode base64 code in method decodeHeaderFieldBody() of INetMIME;
Summary: The system has a bug when decode base64 code in method decodeHeaderFieldBody(...
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC5
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Stephan Bergmann
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-16 07:22 UTC by tianyongwei
Modified: 2004-06-28 09:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tianyongwei 2003-10-16 07:22:24 UTC
By the old source code, you can’t decode the base64 code that is end with one 
or two‘=’.
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