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 dangling pointer #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

milsen
Copy link

@milsen milsen commented Nov 30, 2023

The address of the local variable controller is still referenced to by the static variable controller_ after run() is executed and controller has been deallocated.

This issue was detected in a sonarcloud run for the OGDF. It's not that problematic because controller_ should not be touched again after run() has been executed, but it's the only bug in bandit that sonarcloud detected so I thought that it is worth fixing. Please check whether my changes actually make sense; I'm not that familiar with the bandit code base.

The address of the local variable controller is still referenced to by
the static variable controller_ after run() is executed and controller
has been deallocated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant