qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] net/colo.c: Fix the pointer issuse reported by Coverity.


From: Peter Maydell
Subject: Re: [PATCH] net/colo.c: Fix the pointer issuse reported by Coverity.
Date: Fri, 5 Aug 2022 09:52:40 +0100

On Fri, 5 Aug 2022 at 06:56, Zhang, Chen <chen.zhang@intel.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Jason Wang <jasowang@redhat.com>
> > I wonder under which case we can see data == NULL?
> >
> > AFAIK, data is either dup via packet_new() or assigned to a pointer to the 
> > buf
> > in packet_new_nocopy().
>
> Yes, you are right. I just checked it for hint of bugs.
> Do you think no need to do it?

If you think it is a "should never happen unless QEMU is buggy" case, then
 assert(data).

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]