ASF Bugzilla – Attachment 29875 Details for
Bug 54460
Base64Converter not properly handling bytes with MSB set (not masking byte to int conversion)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn diff against trunk.
ant-Base64Converter.diff (text/plain), 682 bytes, created by
Clive Brettingham-Moore
on 2013-01-22 01:41:04 UTC
(
hide
)
Description:
svn diff against trunk.
Filename:
MIME Type:
Creator:
Clive Brettingham-Moore
Created:
2013-01-22 01:41:04 UTC
Size:
682 bytes
patch
obsolete
>Index: trunk/src/main/org/apache/tools/ant/util/Base64Converter.java >=================================================================== >--- trunk/src/main/org/apache/tools/ant/util/Base64Converter.java (revision 1436696) >+++ trunk/src/main/org/apache/tools/ant/util/Base64Converter.java (working copy) >@@ -83,7 +83,7 @@ > // store the octets > bits24 = (octetString[i++] & BYTE_MASK) << WORD; > bits24 |= (octetString[i++] & BYTE_MASK) << BYTE; >- bits24 |= octetString[i++]; >+ bits24 |= octetString[i++] & BYTE_MASK; > > bits6 = (bits24 & POS_3_MASK) >> POS_3_SHIFT; > out[outIndex++] = ALPHABET[bits6];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54460
: 29875