[patch] A couple of bugfixes for base64 uudecode
Jorgen Cederlof
jcz at google.com
Mon Jun 4 23:55:49 UTC 2007
On Tue, Jun 05, 2007 at 01:35:29 +0200, Denis Vlasenko wrote:
> On Tuesday 05 June 2007 00:32, Denis Vlasenko wrote:
>> On Monday 04 June 2007 22:57, Jorgen Cederlof wrote:
>>> Hello list,
>>>
>>> I encountered a couple of problems with base64 uudecode. It couldn't
>>> handle an empty file (term_count needs to be 1 at the beginning of a
>>> line to catch the terminating line, which it was for every line but
>>> the first) and when the output was supposed to be 3n+1 bytes it wrote
>>> an extra junk byte at the end when it encountered the second '='. The
>>> patch below should fix both issues.
>>
>> Wow. Thanks.
>>
>> Can you send a few testcases which you use for testing?
>
> Never mind. Your fix is in svn now, see attached.
> If you can test it, that will be great.
I have compiled and tested the latest svn version now, and it works
fine. Thanks!
Jörgen
More information about the busybox
mailing list