| From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: ecpg: check return value of replace_variables() |
| Date: | 2025-10-17 08:17:32 |
| Message-ID: | E1v9feW-0026zT-34@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)tigerdata(dot)com>
Reviewed-by: Daniel Gustafsson <daniel(at)yesql(dot)se>
Discussion: https://postgr.es/m/CAJ7c6TNPrU8ZxgdfN3PyGY1tzo0bgszx+KkqW0Z7zt3heyC1GQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0d82163958005b2ba56f8c58311888d142fa4509
Modified Files
--------------
src/interfaces/ecpg/ecpglib/prepare.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2025-10-17 08:37:52 | pgsql: Change config_generic.vartype to be initialized at compile time |
| Previous Message | Daniel Gustafsson | 2025-10-17 07:41:02 | pgsql: Replace defunct URL with stable archive.org URL in rbtree.c |