ecpg: check return value of replace_variables()
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 17 Oct 2025 08:03:15 +0000 (10:03 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 17 Oct 2025 08:03:15 +0000 (10:03 +0200)
commit0d82163958005b2ba56f8c58311888d142fa4509
treedc35ba832acd331e2c0f188f4ee666db0b71cd1a
parent6aa184c80f0cb0e20572441e0189567ed5176e1d
ecpg: check return value of replace_variables()

The function returns false if it fails to allocate memory, so
make sure to check the return value in callsites.

Author: Aleksander Alekseev <aleksander@tigerdata.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAJ7c6TNPrU8ZxgdfN3PyGY1tzo0bgszx+KkqW0Z7zt3heyC1GQ@mail.gmail.com
src/interfaces/ecpg/ecpglib/prepare.c