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

Get around CURLOPT_POSTFIELDS bug, fix node crash #2491

Closed
wants to merge 1 commit into from

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Jul 23, 2021

Fixes #2490.

Without the curl/curl#3549 patch, there will be a strlen call on the uninitialized CURLOPT_POSTFIELDS field which causes crash.

With this pull request, CURLOPT_POSTFIELDS is always initialized.

Update: this patch is not ideal. See the updated issue description for more info.

@abitmore abitmore added this to the 5.3.0 - Feature Release milestone Jul 23, 2021
@abitmore abitmore linked an issue Jul 23, 2021 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Jul 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@abitmore
Copy link
Member Author

The issue is random, the fix is incorrect.

@abitmore abitmore closed this Jul 25, 2021
@abitmore abitmore deleted the pr-2490-fix-es-crash branch July 25, 2021 00:25
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