|
From: Shawn F. <Sha...@te...> - 2002-07-31 17:24:34
|
> Here is an error:
>
>
> While decompressing some file (9682528 archive of 191535331ASCII file) we
> are getting
> DataFormatException (no message).
>
> The exception is originated at
> InflaterDynHeader.decode(StreamManipulator);
>
> in the block:
>
> ...
>
> case LLENS:
> while (ptr < lnum)
> {
> int symbol = blTree.getSymbol(input);
> if (symbol < 0)
> return false;
> switch (symbol)
> {
> default:
> // System.err.println("litlenLens["+ptr+"]: "+symbol);
> litlenLens[ptr++] = (byte) symbol;
> break;
> case 16: /* repeat last len 3-6 times */
> if (ptr == 0)
> throw new DataFormatException
> ("Repeating, but no prev len");
> // System.err.println("litlenLens["+ptr+"]: repeat");
> repeatedLen = litlenLens[ptr-1];
> repBits = 2;
> for (int i = 3; i-- > 0; )
> {
> if (ptr >= lnum)
> throw new DataFormatException();//-------------<<<
> EXCEPTION IS THROWN HERE. (Line 156 in our version snapshot).
> litlenLens[ptr++] = repeatedLen;
> }
> mode = LREPS;
> continue decode_loop;
> ...
>
>
> The Winzip processes the file without any problems with complete
> extraction.
>
> Questions are:
>
> 1) Is this a problem or not? Known bug or not?
> 2) Is any patch or something we can use?
> 3) How can we fight this problem?
>
> Thanks,
>
> - [Shawn Fuller] fuller
>
>
|