Skip to content

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.

1 participant