When receiving malformed msgpack data from network, unpacker.next falls into an infinite loop. And this occurs only when sizeof(size_t) == 4. Please see https://gist.github.com/nori0428/55a63422add3e956bf68 Regards.