Re: [Spice-devel] [linux-agent v1 1/5] virtio-port: initialize struct before memcpy

2018-12-19 Thread Victor Toso
Hi, On Tue, Dec 18, 2018 at 12:06:01PM -0500, Frediano Ziglio wrote: > > > > > From: Victor Toso > > > > Found by coverity: > > > > | uninit_use_in_call: Using uninitialized value "message_header". Field > > | "message_header.data" is uninitialized when calling "memcpy". > > > > Signed-off

Re: [Spice-devel] [linux-agent v1 1/5] virtio-port: initialize struct before memcpy

2018-12-18 Thread Frediano Ziglio
> > From: Victor Toso > > Found by coverity: > > | uninit_use_in_call: Using uninitialized value "message_header". Field > | "message_header.data" is uninitialized when calling "memcpy". > > Signed-off-by: Victor Toso This structure is defined as: typedef struct SPICE_ATTR_PACKED VDAgent

[Spice-devel] [linux-agent v1 1/5] virtio-port: initialize struct before memcpy

2018-12-18 Thread Victor Toso
From: Victor Toso Found by coverity: | uninit_use_in_call: Using uninitialized value "message_header". Field | "message_header.data" is uninitialized when calling "memcpy". Signed-off-by: Victor Toso --- src/vdagentd/virtio-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff