[libvirt] [PATCH 2/5] openvzGetProcessInfo: address clang-detected low-probability flaw

2010-04-14 Thread Jim Meyering
From: Jim Meyering meyer...@redhat.com * src/openvz/openvz_driver.c (openvzGetProcessInfo): Reorganize so that unexpected /proc/vz/vestat content cannot make us use uninitialized variables. Without this change, an input line with a matching readvps, but fewer than 4 numbers would result in our

Re: [libvirt] [PATCH 2/5] openvzGetProcessInfo: address clang-detected low-probability flaw

2010-04-14 Thread Eric Blake
On 04/14/2010 02:46 AM, Jim Meyering wrote: From: Jim Meyering meyer...@redhat.com * src/openvz/openvz_driver.c (openvzGetProcessInfo): Reorganize so that unexpected /proc/vz/vestat content cannot make us use uninitialized variables. Without this change, an input line with a matching

Re: [libvirt] [PATCH 2/5] openvzGetProcessInfo: address clang-detected low-probability flaw

2010-04-14 Thread Jim Meyering
Eric Blake wrote: On 04/14/2010 02:46 AM, Jim Meyering wrote: From: Jim Meyering meyer...@redhat.com * src/openvz/openvz_driver.c (openvzGetProcessInfo): Reorganize so that unexpected /proc/vz/vestat content cannot make us use uninitialized variables. Without this change, an input line with