Re: diff: b64decode(1) for long line

2022-08-30 Thread Claudio Jeker
On Tue, Aug 30, 2022 at 02:19:29PM +0200, Theo Buehler wrote: > > Ah, I showed the diff separated from first one. > > I'm sorry for confusing. The following diff is combined. > > Oh, I see. > > ok tb (feel free to land the diffs separately if you prefer). Also OK claudio -- :wq Claudio

Re: diff: b64decode(1) for long line

2022-08-30 Thread Theo Buehler
> Ah, I showed the diff separated from first one. > I'm sorry for confusing. The following diff is combined. Oh, I see. ok tb (feel free to land the diffs separately if you prefer).

Re: diff: b64decode(1) for long line

2022-08-30 Thread YASUOKA Masahiko
On Tue, 30 Aug 2022 14:09:40 +0200 Theo Buehler wrote: > On Tue, Aug 30, 2022 at 01:01:47PM +0200, YASUOKA Masahiko wrote: >> On Tue, 30 Aug 2022 11:56:53 +0200 >> Claudio Jeker wrote: >> > On Tue, Aug 30, 2022 at 11:18:01AM +0200, YASUOKA Masahiko wrote: >> >> @@ -423,11 +423,13 @@ uu_decode(voi

Re: diff: b64decode(1) for long line

2022-08-30 Thread Theo Buehler
On Tue, Aug 30, 2022 at 01:01:47PM +0200, YASUOKA Masahiko wrote: > On Tue, 30 Aug 2022 11:56:53 +0200 > Claudio Jeker wrote: > > On Tue, Aug 30, 2022 at 11:18:01AM +0200, YASUOKA Masahiko wrote: > >> @@ -423,11 +423,13 @@ uu_decode(void) > >>} > >> } > >> > >> +#define ROUNDDOWN(x,y) ((

Re: diff: b64decode(1) for long line

2022-08-30 Thread YASUOKA Masahiko
On Tue, 30 Aug 2022 11:56:53 +0200 Claudio Jeker wrote: > On Tue, Aug 30, 2022 at 11:18:01AM +0200, YASUOKA Masahiko wrote: >> @@ -423,11 +423,13 @@ uu_decode(void) >> } >> } >> >> +#define ROUNDDOWN(x,y) (((x)/(y)) * (y)) >> + >> static int >> base64_decode(void) >> { >> int

Re: diff: b64decode(1) for long line

2022-08-30 Thread Claudio Jeker
On Tue, Aug 30, 2022 at 11:18:01AM +0200, YASUOKA Masahiko wrote: > b64decode(8) fails if a long line is given. > > % wc test > 1 11370 test > % > % ./b64decode -r test > /dev/null > b64decode: test: /dev/stdout: error decoding base64 input stream > % > > uudecode.c > >

Re: diff: b64decode(1) for long line

2022-08-30 Thread Theo Buehler
> The diff fixes this by giving a string to b64_pton() which length is > multiple of 4. ok tb

diff: b64decode(1) for long line

2022-08-30 Thread YASUOKA Masahiko
b64decode(8) fails if a long line is given. % wc test 1 11370 test % % ./b64decode -r test > /dev/null b64decode: test: /dev/stdout: error decoding base64 input stream % uudecode.c 426 static int 427 base64_decode(void) 428 { 429 int n; 430