Re: rfc.zlib doesn't use checksum?
Shiro Kawai <[email protected]> Sat, 22 Mar 2025 12:16:12 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNHWHWdQJye-5i0H0KDvWOuhXt+YG2BUksKv_D5QNh96Qg@mail.gmail.com> |
--===============9010989329284492933== Content-Type: multipart/alternative; boundary="000000000000aebaa50630f5b8db" --000000000000aebaa50630f5b8db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hmm. From the doc it seems that it should be handled by zlib size by default. Gauche side does not do anything special. Need to dig more. On Wed, Mar 19, 2025 at 12:30=E2=80=AFAM Jens Thiele <[email protected]> wrote= : > Hi, > > Looks like the rfc.zlib module doesn't use the checksum? > > Simulating corruption using tr: > > $ echo hello > hello; zopfli -c --zlib hello|tr H I|pigz -d > lello > pigz: skipping: <stdin>: corrupted -- adler32 mismatch > > $ echo hello > hello; zopfli -c --zlib hello|tr H I \ > |gosh -urfc.zlib -E \ > 'display (inflate-string (port->string (current-input-port)))' > lello > > jens > > > _______________________________________________ > Gauche-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gauche-devel > --000000000000aebaa50630f5b8db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hmm.=C2=A0 From the doc it seems that it should be handled= by zlib size by default.=C2=A0 Gauche side does not do anything special.= =C2=A0 Need to dig more.<div><br></div></div><br><div class=3D"gmail_quote = gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 19= , 2025 at 12:30=E2=80=AFAM Jens Thiele <<a href=3D"mailto:[email protected]= ">[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa= dding-left:1ex">Hi,<br> <br> Looks like the rfc.zlib module doesn't use the checksum?<br> <br> Simulating corruption using tr:<br> <br> $ echo hello > hello; zopfli -c --zlib hello|tr H I|pigz -d<br> lello<br> pigz: skipping: <stdin>: corrupted -- adler32 mismatch<br> <br> $ echo hello > hello; zopfli -c --zlib hello|tr H I \<br> |gosh -urfc.zlib -E \<br> 'display (inflate-string (port->string (current-input-port)))'<b= r> lello<br> <br> jens<br> <br> <br> _______________________________________________<br> Gauche-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Gau= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/gauche-devel" rel= =3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi= nfo/gauche-devel</a><br> </blockquote></div> --000000000000aebaa50630f5b8db-- --===============9010989329284492933== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============9010989329284492933== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gauche-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gauche-devel --===============9010989329284492933==--