Skip to content

fix gopher don't send NUL byte bug#466

Closed
orangetw wants to merge 3 commits intocurl:masterfrom
orangetw:master
Closed

fix gopher don't send NUL byte bug#466
orangetw wants to merge 3 commits intocurl:masterfrom
orangetw:master

Conversation

@orangetw
Copy link
Contributor

@orangetw orangetw commented Oct 1, 2015

I find that gopher scheme (gopher://) do not support NUL byte.
I read the source code and find that gopher.c use STRLEN(SEL) to process the URL-DECODED data.
But "curl_easy_unescape" already has specified OUTLENGTH. so I change the STRLEN(SEL) to OUTLENGTH.

@bagder bagder closed this in 5bf36ea Oct 1, 2015
@bagder
Copy link
Member

bagder commented Oct 1, 2015

Thanks a lot!

jgsogo pushed a commit to jgsogo/curl that referenced this pull request Oct 19, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants