Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
pacemaker.32860
0001-Fix-scheduler-avoid-double-free-with-disab...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-scheduler-avoid-double-free-with-disabled-recurr.patch of Package pacemaker.32860
From c0fd09fba193ec1fe35cb3673ce5a7876cbfbe32 Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Tue, 24 Oct 2023 16:21:40 -0500 Subject: [PATCH] Fix: scheduler: avoid double free with disabled recurring actions Before 413ec356, memory for a disabled recurring action's key was leaked. After 413ec356, it was freed but not NULLed, leading to a double free. Now, it's freed and NULLed. --- lib/pacemaker/pcmk_sched_recurring.c | 1 + 1 file changed, 1 insertion(+) Index: pacemaker-2.1.5+20221208.a3f44794f/lib/pacemaker/pcmk_sched_recurring.c =================================================================== --- pacemaker-2.1.5+20221208.a3f44794f.orig/lib/pacemaker/pcmk_sched_recurring.c +++ pacemaker-2.1.5+20221208.a3f44794f/lib/pacemaker/pcmk_sched_recurring.c @@ -166,6 +166,7 @@ is_recurring_history(const pe_resource_t crm_trace("Not creating recurring action %s for disabled resource %s", op->id, rsc->id); free(op->key); + op->key = NULL; return false; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor