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

Closed
opened 2024-01-19 18:54:05 +00:00 by meejah · 2 comments
meejah commented 2024-01-19 18:54:05 +00:00
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)`
tahoe-lafs added the
unknown
normal
defect
n/a
labels 2024-01-19 18:54:05 +00:00
tahoe-lafs added this to the undecided milestone 2024-01-19 18:54:05 +00:00
meejah commented 2024-01-19 19:01:28 +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)
meejah commented 2024-01-19 19:58:11 +00:00
Author
Owner
(https://github.com/tahoe-lafs/tahoe-lafs/pull/1355)
tahoe-lafs added the
fixed
label 2024-01-20 05:59:21 +00:00
meejah closed this issue 2024-01-20 05:59:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

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