Skip to content

Conversation

@bradh352
Copy link
Member

In c-ares 1.30.0 we started validating strings parsed are printable. This caused a regression in a pycares test case due to a wrong response code being returned as the error was being propagated from a different section of code that was assuming the only possible failure condition was out-of-memory.

This PR adds a fix for this and also a test case to validate it.

Ref: saghul/pycares#200
Fix By: Brad House (@bradh352)

@bradh352 bradh352 merged commit f68992a into c-ares:main Jul 18, 2024
bradh352 added a commit that referenced this pull request Jul 18, 2024
In c-ares 1.30.0 we started validating strings parsed are printable.
This caused a regression in a pycares test case due to a wrong response
code being returned as the error was being propagated from a different
section of code that was assuming the only possible failure condition
was out-of-memory.

This PR adds a fix for this and also a test case to validate it.

Ref: saghul/pycares#200
Fix By: Brad House (@bradh352)
bradh352 added a commit that referenced this pull request Jul 18, 2024
In c-ares 1.30.0 we started validating strings parsed are printable.
This caused a regression in a pycares test case due to a wrong response
code being returned as the error was being propagated from a different
section of code that was assuming the only possible failure condition
was out-of-memory.

This PR adds a fix for this and also a test case to validate it.

Ref: saghul/pycares#200
Fix By: Brad House (@bradh352)
bradh352 added a commit that referenced this pull request Jul 18, 2024
In c-ares 1.30.0 we started validating strings parsed are printable.
This caused a regression in a pycares test case due to a wrong response
code being returned as the error was being propagated from a different
section of code that was assuming the only possible failure condition
was out-of-memory.

This PR adds a fix for this and also a test case to validate it.

Ref: saghul/pycares#200
Fix By: Brad House (@bradh352)
@bradh352 bradh352 deleted the pycares_200 branch July 18, 2024 14:58
@saghul
Copy link
Contributor

saghul commented Jul 18, 2024

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants