Closed abitmore closed 3 years ago
Fixes #2490.
Without the https://github.com/curl/curl/pull/3549 patch, there will be a strlen call on the uninitialized CURLOPT_POSTFIELDS field which causes crash.
strlen
CURLOPT_POSTFIELDS
With this pull request, CURLOPT_POSTFIELDS is always initialized.
Update: this patch is not ideal. See the updated issue description for more info.
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
100.0% Coverage 0.0% Duplication
The issue is random, the fix is incorrect.
Fixes #2490.
Without the https://github.com/curl/curl/pull/3549 patch, there will be a
strlen
call on the uninitializedCURLOPT_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.