From 3baad3848cb862a532aef55a070b7c19b88a1af8 Mon Sep 17 00:00:00 2001 From: Ingo Date: Mon, 17 Mar 2014 14:48:10 +0100 Subject: [PATCH] Access to uninitialised memory in fast demosaic, no Issue --- rtengine/fast_demo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/fast_demo.cc b/rtengine/fast_demo.cc index c6d8722c8..c82446548 100644 --- a/rtengine/fast_demo.cc +++ b/rtengine/fast_demo.cc @@ -82,7 +82,7 @@ SSEFUNCTION void RawImageSource::fast_demosaic(int winx, int winy, int winw, int float (*bluetile); #define CLF 1 // assign working space - buffer = (char *) malloc(3*sizeof(float)*TS*TS + 3*CLF*64 + 63); + buffer = (char *) calloc(3*sizeof(float)*TS*TS + 3*CLF*64 + 63,1); char *data; data = (char*)( ( uintptr_t(buffer) + uintptr_t(63)) / 64 * 64);