test_saslprep: Fix issue with copy of input bytea The data given in input of the function may not be null-terminated, causing strlcpy() to complain with an invalid read.
Issue spotted using valgrind. Reported-by: Alexander Lakhin <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5d35531af1840fdd8debfc1ff657643ddba029ab Modified Files -------------- src/test/modules/test_saslprep/test_saslprep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
