-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
PDU depth field can exceed Canonical JSON integer bounds #1085
Comments
It would be interesting to see which limit is respected by Synapse following matrix-org/matrix-spec-proposals#2540 |
turt2live
added
spec-problem
and removed
spec-bug
Something which is in the spec, but is wrong
labels
May 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to problem area:
Issue
This refers to the maximum value of an signed 64-bit integer.
But Canonical JSON specifies that
presumably because this is the range of integers that fits into an IEEE 64-bit float without loss of precision.
These two limits are inconsistent in any room version which enforces Canonical JSON on PDUs.
Expected behaviour
Easy: lower the limit defined in the PDU spec to 2**53 -1. Depending on your level of paranoia, this may require a new room version.
Hard: remove the depth field altogether, c.f. matrix-org/matrix-spec-proposals#3802
The text was updated successfully, but these errors were encountered: