Fix json_writer did not properly encode special characters.
authorBo Peng <pengbo@sraoss.co.jp>
Thu, 1 May 2025 02:36:55 +0000 (11:36 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Thu, 1 May 2025 02:36:55 +0000 (11:36 +0900)
commitadc57cfa252f9e0cd567a9d9f93295323ea9fe3b
treea7330b6449c04b5a8e0275619b60b4b8a5a88dea
parent6b1c24b58ad3964db8c886f7a5a05c87f5ab2bf0
Fix json_writer did not properly encode special characters.

Pgpool would crash when the watchdog was enabled if wd_authkey contained special characters (e.g., a backslash).

The patch was originally created by Martijn van Duren and revised by Bo Peng.
src/utils/json_writer.c