Skip to content
Snippets Groups Projects
Commit a5d9714d authored by Rene Brun's avatar Rene Brun
Browse files

In the R__unzip function relax the test comparing the test comparing

the pointer position in the uncompressed buffer with the value initially
expected. There are some rare cases when the Inflate function requires
a few more bytes.


git-svn-id: http://root.cern.ch/svn/root/trunk@3881 27541ba8-7e3a-0410-8455-c3a389f83636
parent 814ce7a9
No related branches found
No related tags found
No related merge requests found
/* @(#)root/zip:$Name: $:$Id: Inflate.c,v 1.2 2001/11/13 14:16:18 brun Exp $ */
/* @(#)root/zip:$Name: $:$Id: Inflate.c,v 1.3 2001/11/19 15:51:30 brun Exp $ */
/* Author: */
#include <stdio.h>
#include <stdlib.h>
......@@ -1172,8 +1172,11 @@ void R__unzip(int *srcsize, uch *src, int *tgtsize, uch *tgt, int *irep)
return;
}
if (obufptr - tgt != isize) {
fprintf(stderr,"R__unzip: discrepancy with initial size\n");
/* if (obufptr - tgt != isize) {
There are some rare cases when a few more bytes are required */
if (obufptr - tgt > *tgtsize) {
fprintf(stderr,"R__unzip: discrepancy (%d) with initial size:%d, tgtsize=%d\n",obufptr - tgt,isize,*tgtsize);
*irep = obufptr - tgt;
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment