pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha

pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha

pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha

pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha

pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha

pgsql: Fix incautious handling of possibly-miscoded strings in client c

2021-06-07 Thread Tom Lane
Fix incautious handling of possibly-miscoded strings in client code. An incorrectly-encoded multibyte character near the end of a string could cause various processing loops to run past the string's terminating NUL, with results ranging from no detectable issue to a program crash, depending on wha