Content-Length: 259155 | pFad | http://github.com/postgrespro/postgres/commit/7d791ed49be28f2dfdd31e262dc35c4595718267

BB Fix pointer-arithmetic thinko in pg_stat_ssl patch. · postgrespro/postgres@7d791ed · GitHub
Skip to content

Commit 7d791ed

Browse files
committed
Fix pointer-arithmetic thinko in pg_stat_ssl patch.
Nasty memory-stomp bug in commit 9029f4b. It's not apparent how this survived even cursory testing :-(. Per report from Peter Holzer.
1 parent 5533a27 commit 7d791ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ pgstat_read_current_status(void)
30243024
localappname += NAMEDATALEN;
30253025
localactivity += pgstat_track_activity_query_size;
30263026
#ifdef USE_SSL
3027-
localsslstatus += sizeof(PgBackendSSLStatus);
3027+
localsslstatus++;
30283028
#endif
30293029
localNumBackends++;
30303030
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/7d791ed49be28f2dfdd31e262dc35c4595718267

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy