Closed itamarst closed 9 months ago
Pretty sure this is an encoding bug; it encodes the length "65538" as 00 01 00 04
in the tests I had.
Further experimentation leads me to believe I'm wrong above: encoding 65540 bytes with PyPy3 (7.3.12) leads to a decoding error with Python 3.11.5 (whereas decoding with PyPy3 works).
The new decoding code was a bit more complex than I was comfortable with, so there's probably a bug in there somewhere.
Things to check first
[X] I have searched the existing issues and didn't find my bug already reported there
[X] I have checked that my bug is still present in the latest release
cbor2 version
5.6.0
Python version
3.11
What happened?
How can we reproduce the bug?
See above.