Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raw_New borrows a reference to its argument, so Raw_Copy must dereference it. The following is a minimal repro for this issue: import msgspec DECODER = msgspec.msgpack.Decoder(type=msgspec.Raw) PAYLOAD = b"\xda\xff\xff" + (65535 * b"\0") # array of 65535 zeros for _ in range(1000000): raw = DECODER.decode(PAYLOAD) raw.copy()
- Loading branch information