SF2935662 excepInfo not initialized so NULL check says not null and manipulates uninitialized data.
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
checked on every object creation for users who run in the standard
|
||||
<i>all classes in ROT</i> mode. (M2)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%" valign="top">2935662</td>
|
||||
<td width="87%" valign="top">Error handling code crashes because of uninitialized data in Dispatch.cpp
|
||||
Check for NULL fails. pfnDeferredFillIn pointer is not initialized, but it's not NULL.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%" valign="top"> </td>
|
||||
<td width="87%" valign="top"> </td>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user