提交 92439dab 编写于 作者: S serb

8077394: Uninitialised memory in jdk/src/java/desktop/unix/native/libfontmanager/X11FontScaler.c

Reviewed-by: azvegint, prr
上级 f118703c
...@@ -234,7 +234,7 @@ Java_sun_font_NativeFont_getGlyphAdvance ...@@ -234,7 +234,7 @@ Java_sun_font_NativeFont_getGlyphAdvance
NativeScalerContext *context = (NativeScalerContext*)pScalerContext; NativeScalerContext *context = (NativeScalerContext*)pScalerContext;
AWTFont xFont = (AWTFont)context->xFont; AWTFont xFont = (AWTFont)context->xFont;
AWTChar xcs; AWTChar xcs = NULL;
jfloat advance = 0.0f; jfloat advance = 0.0f;
if (xFont == NULL || context->ptSize == NO_POINTSIZE) { if (xFont == NULL || context->ptSize == NO_POINTSIZE) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册