.
D 2008-08-11T14:03:49
J assignee hobbs
J cmimetype text/plain
J comment Hi\s*,\n\n[binary\sscan\si]\sdelivers\ssigned\sintegers,\swhile\s[zlib\scrc32]\sdelivers\sunsigned\sintegers.\sThe\sappended\spatch\swill\scorrect\sthe\scrc\sfrom\sbinary\sscan.\n\nSimple\stest\scase:\screate\sgzipped\sdata\sthat\sdelivers\ssuch\sa\sCRC,\si.e.\n\n$\sdd\sif=/dev/zero\sbs=1\scount=128\s|\sgzip\s-1\s>\s128zeros.gz\n\nthen\srun\sthis\ssmall\sscript:\n\n----\n\npackage\sr\shttp\s2.7\n\nset\sfh\s[open\s128zeros.gz\sr]\nfconfigure\s$fh\s-encoding\sbinary\s-translation\sbinary\nset\sdata\s[read\s$fh]\nclose\s$fh\n\n::http::Gunzip\s$data\n\n----\n\nResult\swithout\spatch:\n\ninvalid\sdata:\schecksum\smismatch\s-1029113187\s!=\s3265854109\n\s\s\s\swhile\sexecuting\n"::http::Gunzip\s$data"\n\nkind\sregards\n--\sMatthias\sKraft
J foundin obsolete:\s8.5.3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter matzek
J subsystem 29.\shttp\sPackage
J title bogus\sCRC\smismatches\sin\s::http::Gunzip\son\s64bit\sarchitecture
J type Bug
K 2046486fffffffffffffffffffffffffffffffff
U matzek
Z a392f3db403c7c42d6a16b17a40aeae4