代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/ghostscript 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From b503c46c124cf5aaa82a71e28f624f2ef2b71e71 Mon Sep 17 00:00:00 2001
From: ray <Ray.Johnston@artifex.com>
Date: Fri, 10 Apr 2020 15:35:02 -0700
Subject: [PATCH] Bug 702320: Valgrind complains about UMR.
The file for this bug does show that the stroke_color stack based struct
in not initialized. Init fill_color and stroke_color. This is probably a
bug tail from the fill_stroke commit.
Also explicitly set 'zeros' to 0 to clarify the expected contents.
---
 base/gxclbits.c | 3 +--
 base/gxclrast.c | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/base/gxclbits.c b/base/gxclbits.c
index 3c65af9..519cdac 100644
--- a/base/gxclbits.c
+++ b/base/gxclbits.c
@@ -82,7 +82,7 @@ go_process(stream_state * st, stream_cursor_read *pr, stream_cursor_write *pw, b
         return -1;
     return 0;
 }
-static byte zeros[1<<align_bitmap_mod];
+static byte zeros[1<<align_bitmap_mod] = { 0, };
 static int
 cmd_compress_bitmap(stream_state * st, const byte * data, uint width_bits,
                     uint raster, uint height, stream_cursor_write * pw)
@@ -110,7 +110,6 @@ cmd_compress_bitmap(stream_state * st, const byte * data, uint width_bits,
                 byte b = r.ptr[1] & mask;
                 r2.limit = &b;
                 r2.ptr = r2.limit-1;
-
                 status = go_process(st, &r2, pw, false);
                 if (status)
                     break;
diff --git a/base/gxclrast.c b/base/gxclrast.c
index 4d91fa4..4e75d3e 100644
--- a/base/gxclrast.c
+++ b/base/gxclrast.c
@@ -510,8 +510,8 @@ clist_playback_band(clist_playback_action playback_action,
     } clip_save;
     bool in_clip = false;
     gs_gstate gs_gstate;
-    gx_device_color fill_color;
-    gx_device_color stroke_color;
+    gx_device_color fill_color = { 0 };
+    gx_device_color stroke_color = { 0 };
     float dash_pattern[cmd_max_dash];
     gx_fill_params fill_params;
     gx_stroke_params stroke_params;
-- 
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
 马建仓 AI 助手
马建仓 AI 助手