Re: Possible integer overflow in bringetbitmap()

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: James Hunter <james.hunter.pg@gmail.com>
Cc: Evgeniy Gorbanyov <gorbanyoves@basealt.ru>, pgsql-hackers@lists.postgresql.org
Date: 2025-01-14T06:28:17Z
Lists: pgsql-hackers
On Fri, Jan 10, 2025 at 11:22:37AM -0800, James Hunter wrote:
> Attached the proposed one-line fix.

Thanks, applied and backpatched down to v13.  While on it, I've
checked all the other amgetbitmap callbacks and they all rely on an
int64 for the result they return.  So these parts are OK.
--
Michael

Commits

  1. Fix potential integer overflow in bringetbitmap()