Re: [libvirt] [PATCH 3/4] util: Avoid possible error in virCommandMassClose

2019-07-23 Thread Peter Krempa
On Tue, Jul 23, 2019 at 09:58:10 -0400, John Ferlan wrote: > Avoid the chance that sysconf(_SC_OPEN_MAX) returns -1 and thus > would cause virBitmapNew would attempt to allocate a very large > bitmap. > > Found by Coverity > > Signed-off-by: John Ferlan > --- > src/util/vircommand.c | 2 +- >

[libvirt] [PATCH 3/4] util: Avoid possible error in virCommandMassClose

2019-07-23 Thread John Ferlan
Avoid the chance that sysconf(_SC_OPEN_MAX) returns -1 and thus would cause virBitmapNew would attempt to allocate a very large bitmap. Found by Coverity Signed-off-by: John Ferlan --- src/util/vircommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git