Status: New Owner: ---- Labels: Version-3.4.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any Arch-X86-64
New issue 456 by s...@lawipac.com: Unbase64() Append Extra Byte "\0" to the Result http://code.google.com/p/gambas/issues/detail?id=456 1) Describe the problem. Given a file, say "a.jpg", we encoded it using base64 to a string "str", and then decode that string "str" again, the decoded string is not identical to original content of "a.jpg" Upon inspection, UnBase64 added an extra Byte "\0" to the end of the string 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.1 Revision: Operating system: Linux Distribution: Netrunner (KUbuntu based) Architecture: x86_64 GUI component: QT4 Desktop used: KDE 3) Provide a little project that reproduces the bug or the crash. see attached project 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. 1. read a binary file (>1k) into a string 2. encode it using base64 and then decode it back 3. the decoded string is not identical to the original 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: base64-0.0.1.tar.gz 5.4 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user