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

repo: Fix invalid free() #1850

Merged
merged 1 commit into from
Nov 11, 2024
Merged

repo: Fix invalid free() #1850

merged 1 commit into from
Nov 11, 2024

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Nov 11, 2024

Check the solv_read_userdata() return code before creating a unique_ptr
with SolvUserdata.
In case the solv_read_userdata() failed, the solv_free would be called
on unitialized data causing undefined behavior.

Resolves: #1845

Check the solv_read_userdata() return code before creating a unique_ptr
with SolvUserdata.
In case the solv_read_userdata() failed, the solv_free would be called
on unitialized data causing undefined behavior.

Resolves: #1845
@kontura kontura self-assigned this Nov 11, 2024
@kontura kontura added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit 0a1c3e5 Nov 11, 2024
20 checks passed
@kontura kontura deleted the mblaha/solv_free branch November 11, 2024 15:55
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.

free(): double free detected in tcache 2
2 participants