提交 16bf7c27 编写于 作者: P prr

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

Reviewed-by: serb, pchelko
上级 c88534cc
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册