mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
calendar-server: Fix double-free detection abort
app_notify_events_added uses an intermediate builder to construct an
array that is then added to the main variant using g_variant_builder_add
which should clear the intermediate, but doesn't due to the way it is
passed: by value, rather than as a pointer.
This was debugged with the help of Eduardo Habkost, who believes it
works on x86 due to big structs being passed as pointers.
Fixed: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3440
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1848>
(cherry picked from commit 404ca91941)
This commit is contained in:
parent
8c19cd528a
commit
be8a1dcbfc
1 changed files with 1 additions and 2 deletions
|
|
@ -405,8 +405,7 @@ app_notify_events_added (App *app)
|
|||
(gboolean) appt->is_all_day,
|
||||
(gint64) start_time,
|
||||
(gint64) end_time,
|
||||
extras_builder);
|
||||
g_variant_builder_clear (&extras_builder);
|
||||
&extras_builder);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue