Re: [libvirt] [PATCH] virEventPollDispatchHandles: Honour array boundaries

2014-07-09 Thread Ján Tomko
On 07/09/2014 09:57 AM, Michal Privoznik wrote: > When dispatching events from the event loop, the array of registered > handles is searched to see what handles happened an event on. However, > the array is searched in weird way: the check for the array boundaries > is at the end, so we may touch t

[libvirt] [PATCH] virEventPollDispatchHandles: Honour array boundaries

2014-07-09 Thread Michal Privoznik
When dispatching events from the event loop, the array of registered handles is searched to see what handles happened an event on. However, the array is searched in weird way: the check for the array boundaries is at the end, so we may touch the elements after the end of the array: ==10434== Inval