Re: [PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-11-01 Thread Bin Meng
On Tue, Nov 1, 2022 at 8:03 PM Daniel P. Berrangé wrote: > > On Tue, Nov 01, 2022 at 09:14:55AM +0800, Bin Meng wrote: > > Hi Daniel, > > > > On Wed, Oct 26, 2022 at 12:41 AM Bin Meng wrote: > > > > > > On Wed, Oct 19, 2022 at 6:20 PM Bin Meng wrote: > > > > > > > > From: Bin Meng > > > > > >

Re: [PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-11-01 Thread Philippe Mathieu-Daudé
On 19/10/22 12:20, Bin Meng wrote: From: Bin Meng The maximum number of wait objects for win32 should be MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. Signed-off-by: Bin Meng --- Changes in v4: - make the out of bounds access protection explicit Changes in v3: - move the check of

Re: [PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-11-01 Thread Daniel P . Berrangé
On Tue, Nov 01, 2022 at 09:14:55AM +0800, Bin Meng wrote: > Hi Daniel, > > On Wed, Oct 26, 2022 at 12:41 AM Bin Meng wrote: > > > > On Wed, Oct 19, 2022 at 6:20 PM Bin Meng wrote: > > > > > > From: Bin Meng > > > > > > The maximum number of wait objects for win32 should be > > >

Re: [PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-10-31 Thread Bin Meng
Hi Daniel, On Wed, Oct 26, 2022 at 12:41 AM Bin Meng wrote: > > On Wed, Oct 19, 2022 at 6:20 PM Bin Meng wrote: > > > > From: Bin Meng > > > > The maximum number of wait objects for win32 should be > > MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. > > > > Signed-off-by: Bin Meng > > ---

Re: [PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-10-25 Thread Bin Meng
On Wed, Oct 19, 2022 at 6:20 PM Bin Meng wrote: > > From: Bin Meng > > The maximum number of wait objects for win32 should be > MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. > > Signed-off-by: Bin Meng > --- > > Changes in v4: > - make the out of bounds access protection explicit > >

[PATCH v4 1/3] util/main-loop: Fix maximum number of wait objects for win32

2022-10-19 Thread Bin Meng
From: Bin Meng The maximum number of wait objects for win32 should be MAXIMUM_WAIT_OBJECTS, not MAXIMUM_WAIT_OBJECTS + 1. Signed-off-by: Bin Meng --- Changes in v4: - make the out of bounds access protection explicit Changes in v3: - move the check of adding the same HANDLE twice to a