|
a/src/utils/circache.cpp |
|
b/src/utils/circache.cpp |
|
... |
|
... |
557 |
return false;
|
557 |
return false;
|
558 |
}
|
558 |
}
|
559 |
|
559 |
|
560 |
if (hd.flags & EFDataCompressed) {
|
560 |
if (hd.flags & EFDataCompressed) {
|
561 |
LOGDEB1(("Circache:readdicdata: data compressed\n"));
|
561 |
LOGDEB1(("Circache:readdicdata: data compressed\n"));
|
562 |
char *uncomp;
|
562 |
void *uncomp;
|
563 |
unsigned int uncompsize;
|
563 |
unsigned int uncompsize;
|
564 |
if (!inflateToDynBuf(bf, hd.datasize,
|
564 |
if (!inflateToDynBuf(bf, hd.datasize, &uncomp, &uncompsize)) {
|
565 |
(void **)&uncomp, &uncompsize)) {
|
|
|
566 |
m_reason << "CirCache: decompression failed ";
|
565 |
m_reason << "CirCache: decompression failed ";
|
567 |
return false;
|
566 |
return false;
|
568 |
}
|
567 |
}
|
569 |
data->assign(uncomp, uncompsize);
|
568 |
data->assign((char *)uncomp, uncompsize);
|
570 |
free(uncomp);
|
569 |
free(uncomp);
|
571 |
} else {
|
570 |
} else {
|
572 |
LOGDEB1(("Circache:readdicdata: data NOT compressed\n"));
|
571 |
LOGDEB1(("Circache:readdicdata: data NOT compressed\n"));
|
573 |
data->assign(bf, hd.datasize);
|
572 |
data->assign(bf, hd.datasize);
|
574 |
}
|
573 |
}
|