Skip to content

Fix segfault added by #3349: curl handle maybe destroyed#3354

Merged
SergeyRyabinin merged 1 commit intomainfrom
sr/fixCurlErrorBuf
Mar 20, 2025
Merged

Fix segfault added by #3349: curl handle maybe destroyed#3354
SergeyRyabinin merged 1 commit intomainfrom
sr/fixCurlErrorBuf

Conversation

@SergeyRyabinin
Copy link
Contributor

@SergeyRyabinin SergeyRyabinin commented Mar 20, 2025

Issue #, if available:

free(): corrupted unsorted chunks

Description of changes:
Move setting the nullptr to the error buffer earlier.
Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SergeyRyabinin SergeyRyabinin merged commit 23cddcf into main Mar 20, 2025
3 of 4 checks passed
@SergeyRyabinin SergeyRyabinin deleted the sr/fixCurlErrorBuf branch March 20, 2025 19:48
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.

3 participants