[pgpool-committers: 8525] pgpool: Fix shared memory allocation function.

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 6 16:37:52 JST 2022


Fix shared memory allocation function.

pool_shared_memory_segment_get_chunk() which is responsible for shared
memory allocation, failed to consider request size alignment. If
requeste size is not in MAXALIGN (typically 8) bytes, it could overrun
the shared memory area. Probably harmless in the wild but better to
fix.

Branch
------
V4_2_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=3c1f02fa7386ce3757b6cf02e6f29337d9ea4ca4

Modified Files
--------------
src/utils/pool_shmem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list