Re: [Spice-devel] [spice-gtk 2/4] coverity: avoid string overflow

2016-04-24 Thread Fabiano Fidêncio
On Mon, Apr 4, 2016 at 9:59 AM, Fabiano Fidêncio wrote: > sockaddr_un.sun_path has 108 bytes, while pipe_name has > PIPE_NAME_MAX_LEN (256 bytes) > --- > src/controller/test.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/controller/test.c b/src/controller/test.c > index 9a45

Re: [Spice-devel] [spice-gtk 1/4] coverity: fix unitialized use of mem.data

2016-04-24 Thread Fabiano Fidêncio
On Mon, Apr 4, 2016 at 11:08 AM, Christophe Fergeau wrote: > Where is the mem.data use you mention? In the memcpy? Exactly. mem.data use mentioned is in the memcpy. > > Christophe > > On Mon, Apr 04, 2016 at 09:59:50AM +0200, Fabiano Fidêncio wrote: >> --- >> src/channel-main.c | 2 +- >> 1 fil