You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/04/29 15:16:49 UTC

DO NOT REPLY [Bug 8619] New: - Base64 has bug when filesize mod 3 = 1

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8619

Base64 has bug when filesize mod 3 = 1

           Summary: Base64 has bug when filesize mod 3 = 1
           Product: Xerces-C++
           Version: 1.7.0
          Platform: PC
               URL: http://vbmafia.com/testxml.zip
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: matt@dcsboulder.com


The Base64 class doesn't decode data when filesize mod 3 = 1. There is a sample 
program at that the URL I posted that will prove this. Just compile and run the 
testxml program specifiying a folder. It will do an integrity check on all the 
files in that folder (including subfolders). Here is some sample output that I 
received on my machine.

Could Not Decode
File: f:\sdk\images\uninstall-done.ico
Size: 766
Size Mod 3: 1
Checksum1: cd8c12d459ba84d5f99dc11b15c982e3
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\smtimer.gif
Size: 337
Size Mod 3: 1
Checksum1: 431bad7c09058674e8b2de0b09f5a929
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\sdklogo.gif
Size: 2836
Size Mod 3: 1
Checksum1: 3e7e3aadaaaebc2c1799ca87a5325088
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\PUbtnup.gif
Size: 3118
Size Mod 3: 1
Checksum1: 01eedcc2d57317fb6a96357655d46a18
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\icodownl.gif
Size: 151
Size Mod 3: 1
Checksum1: 4b1c229d42d8604a214c6a6799aaa868
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\download-done.ico
Size: 766
Size Mod 3: 1
Checksum1: f3095eaec7b437b966b5cd4ca6ab85ab
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\down.gif
Size: 832
Size Mod 3: 1
Checksum1: fa2ede9b42f0bf85fd71a63d4838a474
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\curve.gif
Size: 139
Size Mod 3: 1
Checksum1: 3dfa3f43aa249e18664ea979cb3b98ef
Checksum2: (null)

Could Not Decode
File: f:\sdk\images\check.gif
Size: 826
Size Mod 3: 1
Checksum1: 2798346ccdd3c7c967be95ef371c290f
Checksum2: (null)

Press any key to continue

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org