Hans Leidekker : msi: Don' t read past the end of the patch list in MsiApplyMultiplePatchesW.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Apr 10 08:56:27 CDT 2015
Module: wine
Branch: master
Commit: 17b80c8ec00bba070972eefb8c9f9eafbc810034
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17b80c8ec00bba070972eefb8c9f9eafbc810034
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Apr 10 12:57:40 2015 +0200
msi: Don't read past the end of the patch list in MsiApplyMultiplePatchesW.
---
dlls/msi/msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 9dc30be..2c476fa 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -487,7 +487,7 @@ UINT WINAPI MsiApplyMultiplePatchesW(LPCWSTR szPatchPackages,
r = MSI_ApplyPatchW(patch, szProductCode, szPropertiesList);
msi_free(patch);
- if (r != ERROR_SUCCESS)
+ if (r != ERROR_SUCCESS || !*end)
break;
beg = ++end;
More information about the wine-cvs
mailing list