-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
-
-
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
gopher: NULL pointer dereference #3617
Comments
Thanks for adding it, I am indeed looking at this but my current travel schedule slowed things down a bit. |
I wrote up a new test to see if this When a URL is passed with Lines 1494 to 1502 in 2591a49
As this generates a full URL that then later is parsed to pieces again and then we get the default path if it wasn't set previously. The new test (test 659) that verifies that this is true is part of my PR #3641 - I instead found another CURLU bug that I ended up fixing there. |
I did this
Coverity pointed out this line (CID 1442746), as a possibly doing a NULL pointer dereference:
curl/lib/gopher.c
Line 96 in 509a0d9
It seems possible to happen if you build a URL from parts and pass to curl with
CURLOPT_CURLU
.(@danielgustafsson we talked on IRC about you grabbing this, which is why you are assigned. I submitted it here just to make sure we don't forget. Feel free to unassign if you're busy.)
I expected the following
It shouldn't be necesarry to check path for NULL there. We should either bail out earlier if it is, or we should make sure that it is never NULL.
curl/libcurl version
current master (509a0d9)
operating system
All
The text was updated successfully, but these errors were encountered: