-
- Downloads
Fix error handling of XLogReaderAllocate in case of OOM
Similarly to previous fix 9b8d4782, commit 2c03216d has switched XLogReaderAllocate() to use a set of palloc calls instead of malloc, causing any callers of this function to fail with an error instead of receiving a NULL pointer in case of out-of-memory error. Fix this by using palloc_extended with MCXT_ALLOC_NO_OOM that will safely return NULL in case of an OOM. Michael Paquier, slightly modified by me.
Showing
- src/backend/access/transam/xlog.c 5 additions, 2 deletionssrc/backend/access/transam/xlog.c
- src/backend/access/transam/xlogreader.c 23 additions, 7 deletionssrc/backend/access/transam/xlogreader.c
- src/backend/replication/logical/logical.c 5 additions, 0 deletionssrc/backend/replication/logical/logical.c
- src/bin/pg_rewind/parsexlog.c 6 additions, 0 deletionssrc/bin/pg_rewind/parsexlog.c
Loading
Please register or sign in to comment