cbor2 encoding of >65KiB strings fails (on some systems) #4087

Closed
opened 2024-01-19 18:54:05 +00:00 by meejah · 2 comments
Owner

On at least one of my systems, doing this fails:

cbor2.loads(cbor2.dumps(b"\x12" * 65538))

...with _cbor2.CBORDecodeEOF: premature end of stream (expected to read 65536 bytes, got 2 instead)

On at least one of my systems, doing this fails: ``` cbor2.loads(cbor2.dumps(b"\x12" * 65538)) ``` ...with `_cbor2.CBORDecodeEOF: premature end of stream (expected to read 65536 bytes, got 2 instead)`
meejah added the
unknown
normal
defect
n/a
labels 2024-01-19 18:54:05 +00:00
meejah added this to the undecided milestone 2024-01-19 18:54:05 +00:00
Author
Owner

This seems to be a cbor2 version thing (works with 5.6.0 but not with 5.4.6)

This seems to be a cbor2 version thing (works with 5.6.0 but not with 5.4.6)
Author
Owner
(https://github.com/tahoe-lafs/tahoe-lafs/pull/1355)
meejah added the
fixed
label 2024-01-20 05:59:21 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#4087
No description provided.