Re: [Spice-devel] [PATCH vd_agent_linux 1/7] virtio-port: Avoid temporary buffers

2019-01-03 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Thu, 2019-01-03 at 10:02 +, Frediano Ziglio wrote: > Modify directly the new_wbuf->buf buffer instead of writing into > a temporary buffer and then copy in the final one. > This also fixes Coverity warning: > > | uninit_use_in_call: Using uninitialized value "

[Spice-devel] [PATCH vd_agent_linux 1/7] virtio-port: Avoid temporary buffers

2019-01-03 Thread Frediano Ziglio
Modify directly the new_wbuf->buf buffer instead of writing into a temporary buffer and then copy in the final one. This also fixes Coverity warning: | uninit_use_in_call: Using uninitialized value "message_header". Field | "message_header.data" is uninitialized when calling "memcpy". Signed-of