hwpfilter/source/hpara.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit afabc7d2f2fcf8fcd39ff5002f09c32e8f03d4bb Author: Caolán McNamara <caol...@redhat.com> Date: Tue Mar 21 09:06:54 2017 +0000
valgrind: uninitialized reads Change-Id: Ia1e821d1e323d85c65484c980be09f015af6517b 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++) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits