EFEducationFirstMobile / librabbitmq-objc

Objective-C wrapper for librabbitmq-c
Other
9 stars 8 forks source link

Bug in AMQPConsumer.m #7

Open yadisnel opened 8 years ago

yadisnel commented 8 years ago

There is a bug in pop method for big messajes, the lines: receivedBytes += frame.payload.body_fragment.len; memcpy(body.bytes, frame.payload.body_fragment.bytes, frame.payload.body_fragment.len); Should be replaced by: memcpy(body.bytes + receivedBytes , frame.payload.body_fragment.bytes, frame.payload.body_fragment.len); receivedBytes += frame.payload.body_fragment.len;