Alex Henrie : oledb32/tests: Fix a use-after-free in test_converttobyrefwstr.

Alexandre Julliard julliard at winehq.org
Tue Feb 28 15:27:04 CST 2017


Module: wine
Branch: master
Commit: 89b75296128e8c2cadc77cb06ecd7faa1f80d012
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=89b75296128e8c2cadc77cb06ecd7faa1f80d012

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Feb 26 23:52:24 2017 -0700

oledb32/tests: Fix a use-after-free in test_converttobyrefwstr.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/oledb32/tests/convert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c
index 405e728..0e4a834 100644
--- a/dlls/oledb32/tests/convert.c
+++ b/dlls/oledb32/tests/convert.c
@@ -2097,7 +2097,7 @@ static void test_converttobyrefwstr(void)
 
     dst_len = 44;
     V_VT(&v) = VT_NULL;
-    hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_BYREF | DBTYPE_WSTR, 0, &dst_len, &v, dst, sizeof(dst), 0, &dst_status, 0, 0, 0);
+    hr = IDataConvert_DataConvert(convert, DBTYPE_VARIANT, DBTYPE_BYREF | DBTYPE_WSTR, 0, &dst_len, &v, &dst, sizeof(dst), 0, &dst_status, 0, 0, 0);
     ok(hr == S_OK, "got %08x\n", hr);
     ok(dst_status == DBSTATUS_S_ISNULL, "got %08x\n", dst_status);
     ok(dst_len == 44, "got %ld\n", dst_len);




More information about the wine-cvs mailing list