aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-02-14 12:20:56 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2015-02-14 12:20:56 -0500
commit80986e85aafd64165efc7f45b330f2f213713032 (patch)
tree76a81a800f440da5e8635ca7b7f2bac59a1fea3c /src/backend/utils/adt/arrayfuncs.c
parent33e879c4e9f485405fc19b663392d8635714d020 (diff)
downloadpostgresql-80986e85aafd64165efc7f45b330f2f213713032.tar.gz
postgresql-80986e85aafd64165efc7f45b330f2f213713032.zip
Avoid returning undefined bytes in chkpass_in().
We can't really fix the problem that the result is defined to depend on random(), so it is still going to fail the "unstable input conversion" test in parse_type.c. However, we can at least satify valgrind. (It looks like this code used to be valgrind-clean, actually, until somebody did a careless s/strncpy/strlcpy/g on it.) In passing, let's just make real sure that chkpass_out doesn't overrun its output buffer. No need for backpatch, I think, since this is just to satisfy debugging tools. Asif Naeem
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions