Skip to content

Commit

Permalink
SF2935662 excepInfo not initialized so NULL check says not null and m…
Browse files Browse the repository at this point in the history
…anipulates uninitialized data.
  • Loading branch information
clay_shooter committed Nov 8, 2010
1 parent d94994e commit 21d0ef6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jacob/docs/ReleaseNotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ <h3>Tracked Changes</h3>
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">&nbsp;</td>
<td width="87%" valign="top">&nbsp;</td>
Expand Down
2 changes: 2 additions & 0 deletions jacob/jni/Dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21d0ef6

Please sign in to comment.