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

ConfigParser: fix use-out-of-scope leaks #1661

Conversation

evan-goode
Copy link
Member

Address some use-out-of-scope bugs found during static analysis. Also ports a test for the shell-style variable expansion over from DNF 5.

@kontura
Copy link
Contributor

kontura commented May 9, 2024

It seems that with the changes a dnf test is failing. Specifically: https://github.com/rpm-software-management/dnf/blob/master/tests/conf/test_parser.py#L37

@evan-goode can you look into it?

@evan-goode evan-goode force-pushed the evan-goode/fix-use-out-of-scope branch from f109acc to aed770e Compare May 9, 2024 13:03
@evan-goode
Copy link
Member Author

It seems that with the changes a dnf test is failing. Specifically: https://github.com/rpm-software-management/dnf/blob/master/tests/conf/test_parser.py#L37

@evan-goode can you look into it?

Thanks, fixed. The tests should pass now. The same oversight was not present in the sister DNF 5 PR (rpm-software-management/dnf5#1473).

@kontura kontura merged commit 18f49a4 into rpm-software-management:dnf-4-master May 10, 2024
9 of 11 checks passed
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.

2 participants