[libvirt] [PATCH] storage_backend_fs: avoid NULL dereference on opendir failure

2009-09-02 Thread Jim Meyering
I've just begun using clang's static analyzer, http://clang-analyzer.llvm.org/ It has uncovered a few problems in libvirt. Here are the first few fixes. I'll send more details later today. From b6bb9d82effa56733fbee9013e66fed384d9ff63 Mon Sep 17 00:00:00 2001 From: Jim Meyering

Re: [libvirt] [PATCH] storage_backend_fs: avoid NULL dereference on opendir failure

2009-09-02 Thread Daniel Veillard
On Wed, Sep 02, 2009 at 10:05:03AM +0200, Jim Meyering wrote: I've just begun using clang's static analyzer, http://clang-analyzer.llvm.org/ It has uncovered a few problems in libvirt. Here are the first few fixes. I'll send more details later today. All patches look fine, it's

Re: [libvirt] [PATCH] storage_backend_fs: avoid NULL dereference on opendir failure

2009-09-02 Thread Daniel P. Berrange
On Wed, Sep 02, 2009 at 10:05:03AM +0200, Jim Meyering wrote: From 7f453c68bc709d542e4c40a388c92c7969ad0a3a Mon Sep 17 00:00:00 2001 From: Jim Meyering meyer...@redhat.com Date: Wed, 2 Sep 2009 09:58:50 +0200 Subject: [PATCH 3/4] lxc: avoid NULL dereference when we find no mount point *

Re: [libvirt] [PATCH] storage_backend_fs: avoid NULL dereference on opendir failure

2009-09-02 Thread Jim Meyering
Daniel P. Berrange wrote: On Wed, Sep 02, 2009 at 10:05:03AM +0200, Jim Meyering wrote: From 7f453c68bc709d542e4c40a388c92c7969ad0a3a Mon Sep 17 00:00:00 2001 From: Jim Meyering meyer...@redhat.com Date: Wed, 2 Sep 2009 09:58:50 +0200 Subject: [PATCH 3/4] lxc: avoid NULL dereference when we