git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9c679a0) | patch
Fix out-of-memory handling in ecpglib.
2020年1月20日 00:15:15 +0000 (19:15 -0500)
2020年1月20日 00:15:15 +0000 (19:15 -0500)
commit 44f1fc8df5dadbc5e80661660903aab4076d868f
Fix out-of-memory handling in ecpglib.

ecpg_build_params() would crash on a null pointer dereference if
realloc() failed, due to updating the persistent "stmt" struct
too aggressively. (Even without the crash, this would've leaked
the old storage that we were trying to realloc.)

Per Coverity. This seems to have been broken in commit 0cc050794,
so back-patch into v12.
src/interfaces/ecpg/ecpglib/execute.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /