Re: [Spice-devel] [PATCH spice-gtk] agent: avoid use of alloca for sending large msg

2012-04-05 Thread Hans de Goede
Hi, The innerloop is a bit hard to read, but it does the trick, so ACK. Regards, Hans On 04/05/2012 03:35 PM, Marc-André Lureau wrote: Instead of allocating unbounded memory and doing extra copy on the stack, let's just improve our helper function to send messages in various pieces. See als

[Spice-devel] [PATCH spice-gtk] agent: avoid use of alloca for sending large msg

2012-04-05 Thread Marc-André Lureau
Instead of allocating unbounded memory and doing extra copy on the stack, let's just improve our helper function to send messages in various pieces. See also: https://bugzilla.redhat.com/show_bug.cgi?id=809145 --- gtk/channel-main.c | 73 +-- 1 fi