From c08b7206caa893d6d9cbdb15270850fc9f25e6b6 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 26 Jan 2008 11:47:01 +0000 Subject: [PATCH] zero icon memory to prevent uninitialized memory from getting into the resources git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5492 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/icon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/icon.cpp b/Source/icon.cpp index ff318305..30bb9bca 100644 --- a/Source/icon.cpp +++ b/Source/icon.cpp @@ -259,6 +259,7 @@ void set_icon(CResourceEditor* re, WORD wIconId, IconGroup icon1, IconGroup icon for (order_index = 0; order_index < order.size(); order_index++) { LPBYTE data = new BYTE[order[order_index].size]; + memset(data, 0, order[order_index].size); if (order_index < icon1.size()) {