mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
urlapi: remove assert
This assert triggers wrongly when CURLU_GUESS_SCHEME and CURLU_NO_AUTHORITY are both set and the URL is a single path. I think this assert has played out its role. It was introduced in a rather big refactor. Follow-up to 4cfa5bcc9a Reported-by: promptfuzz_ on hackerone Closes #12775
This commit is contained in:
parent
bc6d3bb184
commit
162113676a
@ -1264,7 +1264,6 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
|
||||
pathlen -= fraglen;
|
||||
}
|
||||
|
||||
DEBUGASSERT(pathlen < urllen);
|
||||
query = memchr(path, '?', pathlen);
|
||||
if(query) {
|
||||
size_t qlen = fragment ? (size_t)(fragment - query) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user