Skip to content
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

idn: fix WinIDN null ptr deref on bad host #11983

Closed
wants to merge 1 commit into from
Closed

Conversation

jay
Copy link
Member

@jay jay commented Sep 29, 2023

  • Return CURLE_URL_MALFORMAT if IDN hostname cannot be converted from UTF-8 to UTF-16.

Prior to this change a failed conversion erroneously returned CURLE_OK which meant 'decoded' pointer (what would normally point to the punycode) would not be written to, remain NULL and be dereferenced causing an access violation.

Closes #xxxx

- Return CURLE_URL_MALFORMAT if IDN hostname cannot be converted from
  UTF-8 to UTF-16.

Prior to this change a failed conversion erroneously returned CURLE_OK
which meant 'decoded' pointer (what would normally point to the
punycode) would not be written to, remain NULL and be dereferenced
causing an access violation.

Closes #xxxx
@jay jay added the Windows Windows-specific label Sep 29, 2023
@github-actions github-actions bot added the name lookup DNS and related tech label Sep 29, 2023
@bagder
Copy link
Member

bagder commented Oct 4, 2023

@jay merge?

@jay jay closed this in 021d04f Oct 5, 2023
@jay jay deleted the fix_idn_crash branch October 5, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
name lookup DNS and related tech Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

None yet

4 participants