25 lines
733 B
Diff
25 lines
733 B
Diff
From e772e3047896fb72d4976e109ca579d567064050 Mon Sep 17 00:00:00 2001
|
|
From: yanan <yanan@huawei.com>
|
|
Date: Wed, 23 Feb 2022 11:33:48 +0800
|
|
Subject: [PATCH] dconf read random contents of memory causing discrepancy,initialize memory to eliminate discrepancy
|
|
|
|
---
|
|
gvdb/gvdb-builder.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/gvdb/gvdb-builder.c b/gvdb/gvdb-builder.c
|
|
index 2383e60..31e2d8f 100644
|
|
--- a/gvdb/gvdb-builder.c
|
|
+++ b/gvdb/gvdb-builder.c
|
|
@@ -239,6 +239,7 @@ file_builder_allocate (FileBuilder *fb,
|
|
chunk->offset = fb->offset;
|
|
chunk->size = size;
|
|
chunk->data = g_malloc (size);
|
|
+ memset(chunk->data, 0, size);
|
|
|
|
pointer->start = guint32_to_le (fb->offset);
|
|
fb->offset += size;
|
|
--
|
|
2.27.0
|
|
|