- Notifications
You must be signed in to change notification settings - Fork5
Commit567787f
committed
Validate xlog record header before enlarging the work area to store it.
If the record header is garbled, we're now quite likely to notice it beforewe try to make a bogus memory allocation and run out of memory. That canstill happen, if the xlog record is split across pages (we cannot verifythe record header until reading the next page in that scenario), but thisreduces the chances. An out-of-memory is treated as a corrupt recordanyway, so this isn't a correctness issue, just a case of giving a bettererror message.Per Amit Kapila's suggestion.1 parent42e2ce6 commit567787f
1 file changed
+20
-16
lines changedLines changed: 20 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3829 | 3829 |
| |
3830 | 3830 |
| |
3831 | 3831 |
| |
| 3832 | + | |
| 3833 | + | |
3832 | 3834 |
| |
3833 |
| - | |
3834 |
| - | |
3835 |
| - | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
3836 | 3839 |
| |
3837 | 3840 |
| |
3838 | 3841 |
| |
3839 | 3842 |
| |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
3840 | 3857 |
| |
3841 | 3858 |
| |
3842 | 3859 |
| |
| |||
3865 | 3882 |
| |
3866 | 3883 |
| |
3867 | 3884 |
| |
3868 |
| - | |
3869 |
| - | |
3870 |
| - | |
3871 |
| - | |
3872 |
| - | |
3873 |
| - | |
3874 |
| - | |
3875 |
| - | |
3876 |
| - | |
3877 |
| - | |
3878 |
| - | |
3879 |
| - | |
3880 |
| - | |
3881 | 3885 |
| |
3882 | 3886 |
| |
3883 | 3887 |
| |
|
0 commit comments
Comments
(0)