Re: BUG #15312: Possible access to unintended variable in"postgres/src/backend/postmaster/pgstat.c" line 2698 - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #15312: Possible access to unintended variable in"postgres/src/backend/postmaster/pgstat.c" line 2698
Date
Msg-id 20180807153121.xvtkdrmqfr6cneye@alvherre.pgsql
Whole thread Raw
In response to BUG #15312: Possible access to unintended variable in"postgres/src/backend/postmaster/pgstat.c" line 2698  (PG Bug reporting form <noreply@postgresql.org>)
List 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


pgsql-bugs by date:

Previous
From: Maxim Boguk
Date:
Subject: Re: BUG #15313: Waiting `startup` process on a streaming replica
Next
From: PG Bug reporting form
Date:
Subject: BUG #15314: ..