From afabc7d2f2fcf8fcd39ff5002f09c32e8f03d4bb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 21 Mar 2017 09:06:54 +0000 Subject: valgrind: uninitialized reads Change-Id: Ia1e821d1e323d85c65484c980be09f015af6517b --- hwpfilter/source/hpara.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/hwpfilter/source/hpara.cxx b/hwpfilter/source/hpara.cxx index 5b9ac75c87bd..84294c59ed3c 100644 --- a/hwpfilter/source/hpara.cxx +++ b/hwpfilter/source/hpara.cxx @@ -150,6 +150,7 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag) perror("Memory Allocation: cshape\n"); return false; } + memset(cshapep, 0, nch * sizeof(CharShape)); for (ii = 0; ii < nch; ii++) { -- cgit