Re: BUG #15312: Possible access to unintended variable in "postgres/src/backend/postmaster/pgstat.c" line 2698
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: pgsql-bugs@lists.postgresql.org
Cc: petrum@gmail.com, Robert Haas <robertmhaas@gmail.com>, Marti Raudsepp <marti@juffo.org>
Date: 2018-08-07T15:31:21Z
Lists: pgsql-bugs
On 2018-Aug-07, PG Bug reporting form wrote: > While experimenting with a CodeSonar plugin we develop, we noticed a > potential bug in file "postgres/src/backend/postmaster/pgstat.c" line 2698 > function CreateSharedBackendStatus. Hmm, yeah this is a bug, introduced by commit c8e8b5a6e20b AFAICS. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix incorrect initialization of BackendActivityBuffer.
- 6be25d52cfbe 9.3.25 landed
- 753051cc721e 9.4.20 landed
- 0667d889ea9b 9.5.15 landed
- f73a31370624 9.6.11 landed
- 8dd07458149a 10.6 landed
- 1b5438ec2a4d 11.0 landed
- 41db97399d6b 12.0 landed
-
Try to log current the query string when a backend crashes.
- c8e8b5a6e20b 9.2.0 cited