Fixed #1477 corruption in "zero-copy" raw_decoder for payloads larger than 8192 bytes #1477

Fixed wrong message::init arguments.
This commit is contained in:
Jens Auer
2015-07-20 22:22:13 +02:00
parent 15e35c52e7
commit 23797120ff
3 changed files with 89 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ int zmq::raw_decoder_t::decode (const uint8_t *data_, size_t size_,
{
int rc = in_progress.init ((unsigned char*)data_, size_,
shared_message_memory_allocator::call_dec_ref,
allocator.buffer(),
allocator.create_refcnt() );
// if the buffer serves as memory for a zero-copy message, release it