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

Replace unsound RefCell usage with UnsafeCell for error buffer #595

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

Conversation

kadiwa4
Copy link

@kadiwa4 kadiwa4 commented Jan 12, 2025

Fixes #589. RefCell's interface cannot be soundly used for this purpose because libcurl needs a long-lived mutable pointer to the error buffer.

For users, this PR should not have any visible effect except for slight changes in performance perhaps. The auto trait implementations (Send/!Sync/Freeze) of Easy2 do not change.

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.

Implementation of the error buffer in Easy2 is unsound
1 participant