#4087 closed defect (fixed)

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

Reported by: meejah Owned by:
Priority: normal Milestone: undecided
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

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)

Change History (3)

comment:1 Changed at 2024-01-19T19:01:28Z by meejah

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

comment:3 Changed at 2024-01-20T05:59:21Z by meejah

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.