8040808: Uninitialised memory in OGLBufImgsOps.c, D3DBufImgOps.cpp
Reviewed-by: serb, pchelko
This commit is contained in:
parent
acee6fb42a
commit
c11f4a2edb
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user