[Bug 789] gunzip/bunzip2/zcat output corrupted
bugzilla at busybox.net
bugzilla at busybox.net
Mon Dec 14 11:56:17 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=789
Michael McTernan <mmcternan at airvana.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #5 from Michael McTernan <mmcternan at airvana.com> 2009-12-14 11:56:16 UTC ---
I've hacked on this for a while now, and found that it looks to be nothing
specific to gunzip/bunzip/zcat or BusyBox. The following small program, after
enough runs on my target, shows different values being produced:
#include <stdio.h>
int main(int argc, char *args[])
{
FILE *f = fopen(args[1], "rb");
int c;
int sum1 = 0, sum2 = 0;
while(1)
{
c = fgetc(f);
if(c == EOF)
break;
printf("%c", c);
sum1 += c;
sum2 ^= c;
}
fclose(f);
fprintf(stderr, "%x %x\n", sum1, sum2);
return 0;
}
Something is wrong somewhere, but this shows it's not a BusyBox thing, so I'm
resolving the bug as INVALID.
Apologies for any false alarm, and thanks for the suggestions on this issue.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list