segfault on RAF files from Fuji S5 pro, fixes #3741

This commit is contained in:
heckflosse
2017-03-20 21:07:30 +01:00
parent 85cd65a7c8
commit 687b3fe103

View File

@@ -704,6 +704,14 @@ void RawImageSource::getImage (const ColorTemp &ctemp, int tran, Imagefloat* ima
imheight = maximheight;
}
if (fuji) { // zero image to avoid access to uninitialized values in further processing because fuji super-ccd processing is not clean...
for (int i = 0; i < image->getHeight(); ++i) {
for (int j = 0; j < image->getWidth(); ++j) {
image->r(i, j) = image->g(i, j) = image->b(i, j) = 0;
}
}
}
int maxx = this->W, maxy = this->H, skip = pp.getSkip();
// raw clip levels after white balance