diff options
author | Noah Misch <noah@leadboat.com> | 2014-08-18 22:59:31 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2014-08-18 22:59:31 -0400 |
commit | fb2aece8ae4e6f23310d7c87c7da3fec6f5df3a1 (patch) | |
tree | 78dfd07962f4a43f8b23ad8613441a3a018236a5 /contrib/postgres_fdw/sql/postgres_fdw.sql | |
parent | 7fc5f1a3550ca9395051b592df150de79804131a (diff) | |
download | postgresql-fb2aece8ae4e6f23310d7c87c7da3fec6f5df3a1.tar.gz postgresql-fb2aece8ae4e6f23310d7c87c7da3fec6f5df3a1.zip |
Replace a few strncmp() calls with strlcpy().
strncmp() is a specialized API unsuited for routine copying into
fixed-size buffers. On a system where the length of a single filename
can exceed MAXPGPATH, the pg_archivecleanup change prevents a simple
crash in the subsequent strlen(). Few filesystems support names that
long, and calling pg_archivecleanup with untrusted input is still not a
credible use case. Therefore, no back-patch.
David Rowley
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions