mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-25 10:09:38 +02:00
python: Fix another segv.
This commit is contained in:
@@ -299,6 +299,7 @@ cdef class Unpacker(object):
|
|||||||
buf_size = new_size
|
buf_size = new_size
|
||||||
|
|
||||||
memcpy(buf + tail, <char*>(_buf), _buf_len)
|
memcpy(buf + tail, <char*>(_buf), _buf_len)
|
||||||
|
self.buf = buf
|
||||||
self.buf_head = head
|
self.buf_head = head
|
||||||
self.buf_size = buf_size
|
self.buf_size = buf_size
|
||||||
self.buf_tail = tail + _buf_len
|
self.buf_tail = tail + _buf_len
|
||||||
|
|||||||
Reference in New Issue
Block a user