[pgpool-hackers: 4147] Shard memory allocation bug

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 6 16:41:42 JST 2022


I have found a small bug in the 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. So I pushed the fix to master, 4.3 and 4.2 (the function was
introduced in 4.2).

https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=a9e163047eba9dae6b8c8ed8da5dc3bba8aa2f16

Best reagards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


More information about the pgpool-hackers mailing list