!20 [sync] PR-18: read random contents of memory causing discrepancy,initialize memory to eliminate discrepancy
From: @openeuler-sync-bot Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
9d90f5e93c
@ -1,12 +1,14 @@
|
|||||||
Name: dconf
|
Name: dconf
|
||||||
Version: 0.40.0
|
Version: 0.40.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Dconf provides a backend to the GSettings API in Glib
|
Summary: Dconf provides a backend to the GSettings API in Glib
|
||||||
|
|
||||||
License: LGPLv2+ and GPLv2+ and GPLv3+
|
License: LGPLv2+ and GPLv2+ and GPLv3+
|
||||||
URL: http://live.gnome.org/%{name}
|
URL: http://live.gnome.org/%{name}
|
||||||
Source0: http://download.gnome.org/sources/%{name}/0.40/%{name}-%{version}.tar.xz
|
Source0: http://download.gnome.org/sources/%{name}/0.40/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch9000: memset-chunk-date-to-eliminate-discrepancy.patch
|
||||||
|
|
||||||
BuildRequires: bash-completion dbus-devel glib2-devel >= 2.44.0 gtk-doc meson vala libxslt
|
BuildRequires: bash-completion dbus-devel glib2-devel >= 2.44.0 gtk-doc meson vala libxslt
|
||||||
Requires: dbus glib2%{?_isa} >= 2.44.0
|
Requires: dbus glib2%{?_isa} >= 2.44.0
|
||||||
|
|
||||||
@ -86,6 +88,9 @@ dconf update
|
|||||||
%{_mandir}/man7/dconf.7.gz
|
%{_mandir}/man7/dconf.7.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 18 2022 liuyumeng <liuyumeng5@huawei.com> - 0.40.0-2
|
||||||
|
- add patch:dconf read random contents of memory causing discrepancy,initialize memory to eliminate discrepancy
|
||||||
|
|
||||||
* Thu Dec 09 2021 liuyumeng <liuyumeng5@huawei.com> -0.40.0-1
|
* Thu Dec 09 2021 liuyumeng <liuyumeng5@huawei.com> -0.40.0-1
|
||||||
- update to 0.40.0
|
- update to 0.40.0
|
||||||
|
|
||||||
|
|||||||
24
memset-chunk-date-to-eliminate-discrepancy.patch
Normal file
24
memset-chunk-date-to-eliminate-discrepancy.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user