Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-12-08 Thread Ani Sinha
On Wed, Nov 4, 2020 at 21:29 Eduardo Habkost wrote: > On Sat, Oct 31, 2020 at 09:51:38PM +0530, Ani Sinha wrote: > > On Thu, Oct 15, 2020 at 10:22 PM Eduardo Habkost > wrote: > > > > > > On Mon, Sep 21, 2020 at 03:03:25PM +0530, Ani Sinha wrote: > > > > Object property insertion code iterates

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-11-04 Thread Eduardo Habkost
On Sat, Oct 31, 2020 at 09:51:38PM +0530, Ani Sinha wrote: > On Thu, Oct 15, 2020 at 10:22 PM Eduardo Habkost wrote: > > > > On Mon, Sep 21, 2020 at 03:03:25PM +0530, Ani Sinha wrote: > > > Object property insertion code iterates over an integer to get an unused > > > index that can be used as an

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-11-04 Thread Ani Sinha
Ping ... On Sat, Oct 31, 2020 at 9:51 PM Ani Sinha wrote: > On Thu, Oct 15, 2020 at 10:22 PM Eduardo Habkost > wrote: > > > > On Mon, Sep 21, 2020 at 03:03:25PM +0530, Ani Sinha wrote: > > > Object property insertion code iterates over an integer to get an > unused > > > index that can be used

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-10-31 Thread Ani Sinha
On Thu, Oct 15, 2020 at 10:22 PM Eduardo Habkost wrote: > > On Mon, Sep 21, 2020 at 03:03:25PM +0530, Ani Sinha wrote: > > Object property insertion code iterates over an integer to get an unused > > index that can be used as an unique name for an object property. This loop > > increments the

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-10-15 Thread Eduardo Habkost
On Mon, Sep 21, 2020 at 03:03:25PM +0530, Ani Sinha wrote: > Object property insertion code iterates over an integer to get an unused > index that can be used as an unique name for an object property. This loop > increments the integer value indefinitely. Although very unlikely, this can > still

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-10-15 Thread Ani Sinha
Ping ... On Mon, Oct 12, 2020 at 8:08 PM Ani Sinha wrote: > > Request to queue this patch for the next pull. > > On Mon, Sep 21, 2020 at 15:03 Ani Sinha wrote: >> >> Object property insertion code iterates over an integer to get an unused >> index that can be used as an unique name for an

Re: [PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-10-12 Thread Ani Sinha
Request to queue this patch for the next pull. On Mon, Sep 21, 2020 at 15:03 Ani Sinha wrote: > Object property insertion code iterates over an integer to get an unused > index that can be used as an unique name for an object property. This loop > increments the integer value indefinitely.

[PATCH v3] qom: code hardening - have bound checking while looping with integer value

2020-09-21 Thread Ani Sinha
Object property insertion code iterates over an integer to get an unused index that can be used as an unique name for an object property. This loop increments the integer value indefinitely. Although very unlikely, this can still cause an integer overflow. In this change, we fix the above code by