8040808: Uninitialised memory in OGLBufImgsOps.c, D3DBufImgOps.cpp

Reviewed-by: serb, pchelko
This commit is contained in:
Phil Race 2014-07-14 10:29:23 -07:00
parent acee6fb42a
commit c11f4a2edb
2 changed files with 6 additions and 0 deletions

View File

@ -636,6 +636,9 @@ OGLBufImgOps_EnableLookupOp(OGLContext *oglc, jlong pSrcOps,
"OGLBufImgOps_EnableLookupOp: short=%d num=%d len=%d off=%d",
shortData, numBands, bandLength, offset);
for (i = 0; i < 4; i++) {
bands[i] = NULL;
}
RETURN_IF_NULL(oglc);
RETURN_IF_NULL(srcOps);
RESET_PREVIOUS_OP();

View File

@ -201,6 +201,9 @@ D3DBufImgOps_EnableLookupOp(D3DContext *d3dc,
int i;
jint flags = 0;
for (i = 0; i < 4; i++) {
bands[i] = NULL;
}
J2dTraceLn4(J2D_TRACE_INFO,
"D3DBufImgOps_EnableLookupOp: short=%d num=%d len=%d off=%d",
shortData, numBands, bandLength, offset);