lkml.org 
[lkml]   [2002]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: zisofs data corruption in 2.4.19-pre7-ac2
Date

pekon@informatics.muni.cz said:
> I think I discovered an obscure bug in zisofs in 2.4.19-pre7-ac2. It
> manifests thus:

> $ cat /mnt/cdimage/7x14.pbm
> cat: data: Input/output error
> and the following (single) line gets logged:
> zisofs: zisofs_inflate returned 3, inode = 47342, index = 0, fpage = 0,
> xpage = 0, avail_in = 0, avail_out = 1890, ai = 2024, ao = 4096

OK, apply this and both ppp_deflate and zisofs should be happy.

--- lib/zlib_inflate/inflate.c.orig Mon May 13 14:40:26 2002
+++ lib/zlib_inflate/inflate.c Mon May 13 14:40:46 2002
@@ -110,7 +110,7 @@

#undef NEEDBYTE
#undef NEXTBYTE
-#define NEEDBYTE {if(z->avail_in==0)goto empty;r=f;}
+#define NEEDBYTE {if(z->avail_in==0)goto empty;r=trv;}
#define NEXTBYTE (z->avail_in--,z->total_in++,*z->next_in++)

int ZEXPORT zlib_inflate(z, f)

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.018 / U:2.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site