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 memory errors in modify_permission #1613

Merged
merged 2 commits into from
Jul 6, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Jul 6, 2021

What:
The string "subject_where_old" was not freed when returning if
check_permission_args failed.
The string "name" was still used after being freed.

Why:

How did you test it:

Checklist:

The string "subject_where_old" was not freed when returning if
check_permission_args failed.
The string "name" was still used after being freed.
@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 Jul 6, 2021
@timopollmeier timopollmeier marked this pull request as ready for review July 6, 2021 11:42
@timopollmeier timopollmeier requested a review from a team as a code owner July 6, 2021 11:42
@bjoernricks bjoernricks merged commit 6365904 into greenbone:master Jul 6, 2021
bjoernricks added a commit that referenced this pull request Jul 6, 2021
Fix memory errors in modify_permission (backport #1613)
bjoernricks added a commit that referenced this pull request Jul 6, 2021
Fix memory errors in modify_permission (backport #1613)
@timopollmeier timopollmeier deleted the modify-permission-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