Visitar URL original
Harden `Unpacker.__init__` re-entry cleanup to prevent buffer/context leaks by Copilot · Pull Request #687 · msgpack/msgpack-python · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestion from @methane
  • Loading branch information
methane authored Jun 3, 2026
commit 23da5146a44848587eee11b8159b251b5ecf3951
4 changes: 0 additions & 4 deletions msgpack/_unpacker.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,6 @@ cdef class Unpacker:
cdef Py_ssize_t max_buffer_size
cdef uint64_t stream_offset

def __cinit__(self):
self.buf = NULL
unpack_init(&self.ctx)

def __dealloc__(self):
unpack_clear(&self.ctx)
PyMem_Free(self.buf)
Expand Down
Loading