Re: Avoid overflowed array index (src/backend/utils/activity/pgstat.c)

2024-09-05 Thread Michael Paquier
On Thu, Sep 05, 2024 at 09:25:11AM -0300, Ranier Vilela wrote: > Please, disregard the first patch, it contains a bug. > New version attached, v1. These are wrong, because they are changing code paths where we know that stats kinds should be set. For custom stats, particularly, this would silentl

Re: Avoid overflowed array index (src/backend/utils/activity/pgstat.c)

2024-09-05 Thread Ranier Vilela
Em qui., 5 de set. de 2024 às 09:18, Ranier Vilela escreveu: > m qua., 4 de set. de 2024 às 20:58, Michael Paquier > escreveu: > >> On Wed, Sep 04, 2024 at 03:14:34PM -0300, Ranier Vilela wrote: >> > The commit 7949d95 , >> left >> > out an oversi

Re: Avoid overflowed array index (src/backend/utils/activity/pgstat.c)

2024-09-05 Thread Ranier Vilela
m qua., 4 de set. de 2024 às 20:58, Michael Paquier escreveu: > On Wed, Sep 04, 2024 at 03:14:34PM -0300, Ranier Vilela wrote: > > The commit 7949d95 , > left > > out an oversight. > > > > The report is: > > CID 1559468: (#1 of 1): Overflowed array

Re: Avoid overflowed array index (src/backend/utils/activity/pgstat.c)

2024-09-04 Thread Michael Paquier
On Wed, Sep 04, 2024 at 03:14:34PM -0300, Ranier Vilela wrote: > The commit 7949d95 , left > out an oversight. > > The report is: > CID 1559468: (#1 of 1): Overflowed array index read (INTEGER_OVERFLOW) > > I think that Coverity is right. > In the