Commit 9a75c19
Sofia Kopikova
PGPRO-11098 add null-pointer check to ptrack_set_init_lsn() function
When ptrack extension is added to shared_preload_libraries, but
ptrack.map size is 0, we may encounter segmantation fault when calling
ptrack_backup_checkpoint_request_hook() function. This commit adds
additional null-pointer checks to ptrack_set_init_lsn() function called
by ptrack_backup_checkpoint_request_hook() to avoid this segfault1 parent 08cf80d commit 9a75c19
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
662 | 666 | | |
663 | 667 | | |
664 | 668 | | |
| |||
0 commit comments