Re: Fw: Re: heap_force_common in contrib/pg_surgery/heap_surgery.c has an off by one stack buffer overflow

surya poondla <suryapoondla4@gmail.com>

From: surya poondla <suryapoondla4@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Ashutosh Sharma <ashu.coek88@gmail.com>, "violin0613@tju.edu.cn" <violin0613@tju.edu.cn>, pgsql-bugs@postgresql.org
Date: 2026-06-06T01:08:45Z
Lists: pgsql-bugs
Hi Ashutosh, Michael,

Thank you for raising great points.

Yes, the "subtraction of 1" for index change looks good.

Thank you Michael for pushing the code.

Regards,
Surya Poondla

Commits

  1. pg_surgery: Fix off-by-one bug with heap offset