Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
glib2.0
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
glib2.0
Commits
d56bc666
Commit
d56bc666
authored
11 months ago
by
Simon McVittie
Committed by
Dylan Aïssi
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Import Debian changes 2.66.8-1+deb11u4
parent
8e78f993
Branches
debian/bullseye
Branches containing commit
Tags
debian/2.66.8-1+deb11u4
Tags containing commit
3 merge requests
!38
Merge changes from apertis/v2023-updates into apertis/v2023
,
!34
Update from debian/bullseye for apertis/v2022-updates
,
!33
Update from debian/bullseye for apertis/v2023-updates
Pipeline
#799216
passed
4 months ago
Stage: build-env
Stage: update
Stage: merge
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+8
-0
8 additions, 0 deletions
debian/changelog
debian/patches/gdbusmessage-Clean-the-cached-arg0-when-setting-the-messa.patch
+41
-0
41 additions, 0 deletions
...essage-Clean-the-cached-arg0-when-setting-the-messa.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
50 additions
and
0 deletions
debian/changelog
+
8
−
0
View file @
d56bc666
glib2.0 (2.66.8-1+deb11u4) bullseye; urgency=medium
* d/p/gdbusmessage-Clean-the-cached-arg0-when-setting-the-messa.patch:
Add patch from upstream fixing a memory leak that can occur in
rare situations since 2.66.8-1+deb11u2 (Closes: #1070851)
-- Simon McVittie <smcv@debian.org> Tue, 14 May 2024 11:12:17 +0100
glib2.0 (2.66.8-1+deb11u3) bullseye-security; urgency=high
* d/p/CVE-2024-34397/gdbusconnection-Allow-name-owners-to-have-the-syntax-of-a.patch:
...
...
This diff is collapsed.
Click to expand it.
debian/patches/gdbusmessage-Clean-the-cached-arg0-when-setting-the-messa.patch
0 → 100644
+
41
−
0
View file @
d56bc666
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Wed, 8 May 2024 22:53:51 +0200
Subject: gdbusmessage: Clean the cached arg0 when setting the message body
We're now caching arg0 but such value is not cleared when a new body is
set as it's in the connection filter test cases where we've a leak as
highlighted by both valgrind and leak sanitizer
Origin: upstream, 2.80.3, commit:fe89e9f3cb6e0fd0dc2bd8a2d413799e1443cef1
Bug-Debian: https://bugs.debian.org/1070851
---
gio/gdbusmessage.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
index c4357cb..ffe8827 100644
--- a/gio/gdbusmessage.c
+++ b/gio/gdbusmessage.c
@@ -1127,10 +1127,12 @@
g_dbus_message_set_body (GDBusMessage *message,
if (message->body != NULL)
g_variant_unref (message->body);
+
+ g_clear_pointer (&message->arg0_cache, g_variant_unref);
+
if (body == NULL)
{
message->body = NULL;
- message->arg0_cache = NULL;
g_dbus_message_set_signature (message, NULL);
}
else
@@ -1144,8 +1146,6 @@
g_dbus_message_set_body (GDBusMessage *message,
if (g_variant_is_of_type (message->body, G_VARIANT_TYPE_TUPLE) &&
g_variant_n_children (message->body) > 0)
message->arg0_cache = g_variant_get_child_value (message->body, 0);
- else
- message->arg0_cache = NULL;
type_string = g_variant_get_type_string (body);
type_string_len = strlen (type_string);
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
d56bc666
...
...
@@ -72,3 +72,4 @@ CVE-2024-34397/tests-Add-a-test-for-matching-by-two-well-known-names.patch
CVE-2024-34397/tests-Add-a-test-for-signal-filtering-by-well-known-name.patch
CVE-2024-34397/tests-Ensure-that-unsubscribing-with-GetNameOwner-in-flig.patch
CVE-2024-34397/gdbusconnection-Allow-name-owners-to-have-the-syntax-of-a.patch
gdbusmessage-Clean-the-cached-arg0-when-setting-the-messa.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment