[COMMITTERS] pgsql: Fix pnstrdup() to not memcpy() the maximum allowed length. - Mailing list pgsql-committers

From Andres Freund
Subject [COMMITTERS] pgsql: Fix pnstrdup() to not memcpy() the maximum allowed length.
Date
Msg-id E1e1gR2-0005fC-SP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix pnstrdup() to not memcpy() the maximum allowed length.

The previous behaviour was dangerous if the length passed wasn't the
size of the underlying buffer, but the maximum size of the underlying
buffer.

Author: Andres Freund
Discussion: https://postgr.es/m/20161003215524.mwz5p45pcverrkyk@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/82c117cb90e6b6b79f06d61eb1ddf06e94e75b60

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: [COMMITTERS] pgsql: Remove unused documentation file
Next
From: Andres Freund
Date:
Subject: Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.