[patch] A couple of bugfixes for base64 uudecode

Denis Vlasenko vda.linux at googlemail.com
Mon Jun 4 23:35:29 UTC 2007


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.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.patch
Type: text/x-diff
Size: 5570 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070605/9d679f21/attachment-0002.bin 


More information about the busybox mailing list