Re: [Qemu-devel] [PATCH v3 1/5] qtest: allow arbitrarily long sends

2015-05-05 Thread John Snow
On 05/05/2015 07:22 PM, Eric Blake wrote: > On 05/05/2015 04:22 PM, John Snow wrote: >> qtest currently has a static buffer of size 1024 that if we >> overflow, ignores the additional data silently which leads to >> hangs or stream failures. >> >> Use glib's string facilities to allow arbitrari

Re: [Qemu-devel] [PATCH v3 1/5] qtest: allow arbitrarily long sends

2015-05-05 Thread Eric Blake
On 05/05/2015 04:22 PM, John Snow wrote: > qtest currently has a static buffer of size 1024 that if we > overflow, ignores the additional data silently which leads > to hangs or stream failures. > > Use glib's string facilities to allow arbitrarily long data, > but split this off into a new functi

[Qemu-devel] [PATCH v3 1/5] qtest: allow arbitrarily long sends

2015-05-05 Thread John Snow
qtest currently has a static buffer of size 1024 that if we overflow, ignores the additional data silently which leads to hangs or stream failures. Use glib's string facilities to allow arbitrarily long data, but split this off into a new function, qtest_sendf. Static data can still be sent using