mirror of
https://github.com/curl/curl.git
synced 2026-07-16 02:07:16 +03: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
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue