Re: [libvirt PATCH v2 1/1] virThreadPoolNewFull: Prevent expanding worker pool by zero

2021-07-14 Thread Michal Prívozník
On 7/13/21 4:49 PM, Tim Wiederhake wrote: > On libvirtd startup, the list of priority worker threads is uninitialized > (`pool->prioWorkers` is NULL), and then "expanded" to zero (`prioWorkers`) > entries. > > This causes `virThreadPoolExpand` to call `VIR_EXPAND_N` on a null pointer > and an incr

[libvirt PATCH v2 1/1] virThreadPoolNewFull: Prevent expanding worker pool by zero

2021-07-13 Thread Tim Wiederhake
On libvirtd startup, the list of priority worker threads is uninitialized (`pool->prioWorkers` is NULL), and then "expanded" to zero (`prioWorkers`) entries. This causes `virThreadPoolExpand` to call `VIR_EXPAND_N` on a null pointer and an increment of zero. The zero increment triggers `virRealloc