-
Notifications
You must be signed in to change notification settings - Fork 916
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
[bugfix] Reject hexadecimal blobs with odd number of characters #14913
Conversation
Neat! If you move |
Ah, right. I'll amend the message (and maybe the commit...) after the CI completes. |
Pull Request Test Coverage Report for Build 12194870868Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
The recursor regression test failure is due to a dependency on external authoritative servers in combination with lousy GH UDP connectivity. One day we will get rid of those dependencies. I'll restart that test. |
I was quite convinced this had nothing to do with that change but couldn't infer that from the logs. On the other hand, I am worried about the coverage results because this shouldn't cause any change in coverage - this particular case is not tested yet (because I am still arm-wrestling the regress tests at the moment and I have yet to win.) |
Don't be too worried, there are cases where non-determinism is going on, so the tests vary a bit in coverage per run. As for regress test wrestling: sadly these parts carry a lot of legacy load. While we have an ongoing effort to clean up the code base, the various test mechanisms we have are a bit of a neglected area in that respect. |
As for a test: I'd go for something lile
in an appropriate spot in |
Thanks for the hint! |
[bugfix] Reject hexadecimal blobs with odd number of characters
Short description
Until about 2011, hexadecimal input as ascii strings were required to have an even number of characters, in order to make a correct number of bytes. Then changes were made to allow whitespace in these strings, or a dangling single hex char was accepted as the high-order part of a complete byte, i.e. "ABCDE" would be parsed as "ABCDE0".
This PR brings back the exception which used to be raised for an odd number of meaningful characters, but does not change the rest of the logic (i.e. you can still write "AB_CD_EF" if you want).
Checklist
I have: