From b8b02e227c26b01c478e4cd2335849f0194e7492 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Jan 2014 18:45:37 +0000 Subject: cleaning rest of decoded event not to make aggressive check suspicious git-svn-id: http://svn.miranda-ng.org/main/trunk@7526 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/dbcrypt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Db3x_mmap') diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index 843a48b31b..922e7c006b 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -426,6 +426,9 @@ void CDb3Mmap::ToggleEventsEncryption(HANDLE hContact) ofsDest = offset; // reuse the old space evt.flags &= ~DBEF_ENCRYPTED; + + if (len < evt.cbBlob) + DBFill(ofsDest + offsetof(DBEvent, blob) + (DWORD)len, evt.cbBlob - (DWORD)len); } evt.cbBlob = (DWORD)len; -- cgit v1.2.3