Skip to content

ECH: Fix leak and zero-length crash #14151

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

Closed
wants to merge 1 commit into from
Closed

Conversation

sftcd
Copy link
Contributor

@sftcd sftcd commented Jul 10, 2024

This PR fixes a leak and a crash that can happen when curl encounters bad HTTPS RR values in DNS. We're starting to do better testing of that kind of thing and e.g. have published bad HTTPS RR values at dodgy.test.defo.ie. There could be some more fixes to come as we make those tests more systematic and add test cases but we figured it would be better to create this small PR now in any case.

The problems here were found by @niallor as part of work he's doing on better handling of multiple HTTPS RR values in curl.

@github-actions github-actions bot added the tests label Jul 10, 2024
@bagder
Copy link
Member

bagder commented Jul 11, 2024

The manpage tests can fail in CI if the test runs on the other side of the date shift from the build, as it then expects another date in the generated output... I need to fix this somehow.

@sftcd
Copy link
Contributor Author

sftcd commented Jul 11, 2024

If me doing something fixes that man-page CI thing, just say...

@bagder bagder closed this in 6a5bb68 Jul 12, 2024
@bagder
Copy link
Member

bagder commented Jul 12, 2024

Thanks!

meslubi2021 pushed a commit to Unity-Curl/curl that referenced this pull request Jul 19, 2024
This PR fixes a leak and a crash that can happen when curl encounters
bad HTTPS RR values in DNS. We're starting to do better testing of that
kind of thing and e.g. have published bad HTTPS RR values at
dodgy.test.defo.ie.

Closes curl#14151
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants