Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix erroneous freeing of ical timezone component #1530

Merged
merged 3 commits into from
May 24, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented May 21, 2021

What:
The icalendar component for a given timezone is now duplicated in
icalendar_from_string because it the original one should not be freed.

Why:
Freeing the original component would cause double-free errors when
modifying multiple schedules in the same process, e.g. in a single
GMP connection.

How did you test it:
By creating several test schedules and modifying them using the script
added in greenbone/gvm-tools#445.

Checklist:

The icalendar component for a given timezone is now duplicated in
icalendar_from_string because it the original one should not be freed.
Doing so would cause double-free errors when modifying multiple
schedules in the same process, e.g. in a single GMP connection.
@timopollmeier timopollmeier added backport-to-oldstable This pull request will be backported to the oldstable branch backport-to-stable This pull request will be backported to the stable branch labels May 21, 2021
@timopollmeier timopollmeier marked this pull request as ready for review May 21, 2021 14:05
@timopollmeier timopollmeier requested a review from a team as a code owner May 21, 2021 14:05
@bjoernricks bjoernricks merged commit 2947693 into greenbone:master May 24, 2021
timopollmeier added a commit that referenced this pull request May 25, 2021
Fix erroneous freeing of ical timezone component (backport #1530)
timopollmeier added a commit that referenced this pull request May 25, 2021
Fix erroneous freeing of ical timezone component (backport #1530)
@timopollmeier timopollmeier deleted the ical-timezone-fix branch October 15, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-oldstable This pull request will be backported to the oldstable branch backport-to-stable This pull request will be backported to the stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants