[sheepdog] [PATCH v2 5/7] collie: add new commands to manipulate multi-disks

Liu Yuan namei.unix at gmail.com
Wed Apr 3 04:50:07 CEST 2013


On 04/03/2013 10:45 AM, MORITA Kazutaka wrote:
> But sheep allocates only hdr->data_length bytes to req->data.  It
> means that there is no assurance that req->data in sheep is
> NULL-terminated if we don't set strlen(disks) + 1 to data_length.
> Sheep calls strtok against the buffer in do_plug_unplug() so this
> looks dangerous to me.

Okay, I'll update it in next version.

Thanks,
Yuan



More information about the sheepdog mailing list