forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commited5b0f7
committed
Protect against XLogReaderAllocate() failing to allocate memory.
logical.c's StartupDecodingContext() forgot to check whetherXLogReaderAllocate() returns NULL indicating a memory allocationfailure. This could lead, although quite unlikely, lead to a NULLpointer dereference.This only applies to 9.4 as earlier versions don't do logicaldecoding, and later versions don't return NULL after allocationfailures in XLogReaderAllocate().Michael Paquier, with minor changes by me.1 parent83fb1ca commited5b0f7
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
165 | 170 |
| |
166 | 171 |
| |
167 | 172 |
| |
|
0 commit comments
Comments
(0)