Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words - Mailing list pgsql-hackers

From David Rowley
Subject Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words
Date
Msg-id CAApHDvq5OpX66FB=aBsKXSboDGruVMa=z2KST5LecEqeo2E=ew@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, 15 Aug 2025 at 02:06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> David Rowley <dgrowleyml@gmail.com> writes:
> > So looks like it's the fault of the calling code and not an issue with
> > bms_prev_member().
>
> Yeah.  But perhaps it'd be reasonable to put in an Assert checking
> that?

Seems like a good idea.

> Grammar nitpick: comment should be more like "set in the Bitmapset".

Agreed.

David



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: cfbot mistakenly reports that a rebase is needed
Next
From: Greg Burd
Date:
Subject: Re: [PATCH] bms_prev_member() can read beyond the end of the array of allocated words