aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorEtsuro Fujita <efujita@postgresql.org>2025-05-03 20:00:00 +0900
committerEtsuro Fujita <efujita@postgresql.org>2025-05-03 20:00:00 +0900
commit5201bba266d7127397e08a2d954faa5a996c0139 (patch)
tree4ca062c154962c40cbf77098e947e91092d806b2 /contrib/postgres_fdw/postgres_fdw.h
parent6e91b9c16ff53fadf75a545aabe5907f1c046d2f (diff)
downloadpostgresql-5201bba266d7127397e08a2d954faa5a996c0139.tar.gz
postgresql-5201bba266d7127397e08a2d954faa5a996c0139.zip
Fix memory allocation/copy mistakes.
The previous code was allocating more memory and copying more data than necessary because it specified the wrong PgStat_KindInfo member as the size argument for MemoryContextAlloc and memcpy, respectively. Although these issues exist since 5891c7a8e, there have been no reports from the field. So for now, it seems sufficient to fix them in master. Author: Etsuro Fujita <etsuro.fujita@gmail.com> Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Gurjeet Singh <gurjeet@singh.im> Discussion: https://postgr.es/m/CAPmGK15eTRCZTnfgQ4EuBNo%3DQLYGFEbXS_7m2dXqtkcT7L8qrQ%40mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions