Re: [libvirt] [PATCH] lxc: Clang is complaining about possible NULL pointer.

2018-11-05 Thread Erik Skultety
On Mon, Nov 05, 2018 at 04:58:14PM -0200, Julio Faracco wrote: > The array "mount" inside lxc_container is not being checked before for > loop. Clang syntax scan is complaining about this segmentation fault. Which in this specific case is a false positive since nmounts pretty much protects us from

Re: [libvirt] [PATCH] lxc: Clang is complaining about possible NULL pointer.

2018-11-05 Thread Pino Toscano
On Monday, 5 November 2018 19:58:14 CET Julio Faracco wrote: > The array "mount" inside lxc_container is not being checked before for > loop. Clang syntax scan is complaining about this segmentation fault. > > Signed-off-by: Julio Faracco > --- > src/lxc/lxc_container.c | 4 ++-- > 1 file change

[libvirt] [PATCH] lxc: Clang is complaining about possible NULL pointer.

2018-11-05 Thread Julio Faracco
The array "mount" inside lxc_container is not being checked before for loop. Clang syntax scan is complaining about this segmentation fault. Signed-off-by: Julio Faracco --- src/lxc/lxc_container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/lxc_container.c b/