From: Tom Lane Date: Mon, 27 Jul 2015 19:58:46 +0000 (-0400) Subject: Fix pointer-arithmetic thinko in pg_stat_ssl patch. X-Git-Tag: REL9_6_BETA1~1625 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d791ed49be28f2dfdd31e262dc35c4595718267;p=postgresql Fix pointer-arithmetic thinko in pg_stat_ssl patch. Nasty memory-stomp bug in commit 9029f4b37406b21a. It's not apparent how this survived even cursory testing :-(. Per report from Peter Holzer. --- diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index e9fbc381cc..887095def0 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -3024,7 +3024,7 @@ pgstat_read_current_status(void) localappname += NAMEDATALEN; localactivity += pgstat_track_activity_query_size; #ifdef USE_SSL - localsslstatus += sizeof(PgBackendSSLStatus); + localsslstatus++; #endif localNumBackends++; }