-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Curl 7.88.X segmentation fault with -D/--dump-header when it fails to create the file #10570
Labels
Comments
Lines 985 to 989 in cbf5717
One of us can submit a PR in the next day or so |
bagder
added a commit
that referenced
this issue
Feb 20, 2023
Fixes #10570 Reported-by: Jérémy Rabasco
Thanks for the quick response! |
bch
pushed a commit
to bch/curl
that referenced
this issue
Jul 19, 2023
Fixes curl#10570 Reported-by: Jérémy Rabasco Closes curl#10571
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
If you try to use the
-D/--dump-header <filename>
option,curl
curl will have a segmentation faultif the file cannot be created (for instance if the target directory does not have the
w
permissions), forinstance:
I expected the following
On older versions of
curl
, it just prints an error message and exits with rcode 23(the below is what happens with version 7.29.0):
curl/libcurl version + operationg systems
I was able to reproduce with the following two setups:
curl
version 2.88.0:curl
version 2.88.1 (built from source):Note that I was NOT able to reproduce this using the windows binary (downloaded from the curl website)
The text was updated successfully, but these errors were encountered: