SF2935662 excepInfo not initialized so NULL check says not null and manipulates uninitialized data.

This commit is contained in:
clay_shooter
2010-11-08 02:01:16 +00:00
parent 5b88936d48
commit 657e5980d9
2 changed files with 7 additions and 0 deletions

View File

@@ -418,6 +418,8 @@ JNIEXPORT jobject JNICALL Java_com_jacob_com_Dispatch_invokev
{
DISPPARAMS dispparams;
EXCEPINFO excepInfo;
// Sourceforge Bug Tracker 2935662 uninitialized data can be not NULL with bad results
excepInfo.pfnDeferredFillIn = NULL;
IDispatch *pIDispatch = extractDispatch(env, disp);
if (!pIDispatch) return NULL;