Module: wine
Branch: master
Commit: f760079a717042d436a693df59fa1d4416a0e352
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f760079a717042d436a693df…
Author: Eberhard Beilharz <eb1(a)sil.org>
Date: Tue Dec 11 21:00:23 2018 +0100
comctl32/imagelist: Fix crash with large number of images.
Fix a crash that occurred when reading a imagelist with a large number
of images. In the particular case we read a cMaxImage value of 1032,
but allocated only 40 or so images. This lead to memory corruption in
ImageList_Read. This change allows to run TntConnect.
Signed-off-by: Eberhard Beilharz <eb1(a)sil.org>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/comctl32/imagelist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index a08d607..3e30673 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -2273,7 +2273,7 @@ HIMAGELIST WINAPI ImageList_Read(IStream *pstm)
TRACE("cx %u, cy %u, flags 0x%04x, cCurImage %u, cMaxImage %u\n",
ilHead.cx, ilHead.cy, ilHead.flags, ilHead.cCurImage, ilHead.cMaxImage);
- himl = ImageList_Create(ilHead.cx, ilHead.cy, ilHead.flags, ilHead.cCurImage, ilHead.cMaxImage);
+ himl = ImageList_Create(ilHead.cx, ilHead.cy, ilHead.flags, ilHead.cMaxImage, ilHead.cGrow);
if (!himl)
return NULL;
Module: tools
Branch: master
Commit: 7c9506177aba7f3a7d99d766de22aba4dbff8c73
URL: https://source.winehq.org/git/tools.git/?a=commit;h=7c9506177aba7f3a7d99d76…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Dec 12 16:58:35 2018 +0100
testbot/SetWinLocale: Automate changing the Windows locales.
SetWinLocale leverages TestAgent and intl.cpl to automate changing the
Windows locales of the specified host: sorting and formatting, system
locale, display language, keyboard and location.
It can also create locale VMs for the TestBot, that is copies of a
base VM that allow the TestBot to run the tests in the specified locale.
Then it can recreate a specific locale VM snapshot from the base
snapshot, or refresh the snapshots of all the locale VMs of a given base
VM.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/scripts/SetWinLocale | 857 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 857 insertions(+)
Diff: https://source.winehq.org/git/tools.git/?a=commitdiff;h=7c9506177aba7f3a7d9…