-
Notifications
You must be signed in to change notification settings - Fork 227
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
Validation criteria: verify_strict
might be accepting non-canonical R
#267
Comments
Ok I think this is a non-issue. Yes, it may be the case that My proposed solution: let's just make this explicit, and do verification by byte comparison in all cc @tarcieri P.S. This doesn't necessarily address the fact that |
Agree with this, and I wonder if you could potentially wrap it up a little more, perhaps a function that calls your proposed |
My thought was to have But #251 needs to land before that happens. |
It appears that
verify_strict
might permit non-canonicalR
, whileverify
does not. Notice the difference in the code is thatverify_strict
does a point comparison, whileverify
does a byte comparison.This is pretty subtle, and I think it's not detected by our validation tests because the validation tests never do a non-canonical
R
that isn't also low-order. Three things I wanna do:verify_strict
to reject non-canonical encodingThis is technically breaking, but I consider it a bugfix rather than a validation change. Nobody would reasonably expect
verify_strict
to be more permissive thanverify
on any axis.The text was updated successfully, but these errors were encountered: