- Notifications
You must be signed in to change notification settings - Fork28
Commit2322456
committed
Fix memory corruption/crash in ANALYZE.
This fixes an embarrassing oversight I (Andres) made in737a292,namely missing two place where liverows/deadrows were used whenconverting those variables to pointers, leading to incrementing thepointer, rather than the value.It's not that actually that easy to trigger a crash: One needs tuplesdeleted by the current transaction, followed by a tuple deleted inanother session, all in one page. Which is presumably why this hasn'tbeen noticed before.Reported-By: Steve SingerAuthor: Steve SingerDiscussion:https://postgr.es/m/c7988239-d42c-ddc4-41db-171b23b35e4f@ssinger.info1 parent8b21b41 commit2322456
File tree
3 files changed
+27
-2
lines changed- src
- backend/access/heap
- test/regress
- expected
- sql
3 files changed
+27
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1113 | 1113 |
| |
1114 | 1114 |
| |
1115 | 1115 |
| |
1116 |
| - | |
| 1116 | + | |
1117 | 1117 |
| |
1118 | 1118 |
| |
1119 | 1119 |
| |
1120 |
| - | |
| 1120 | + | |
1121 | 1121 |
| |
1122 | 1122 |
| |
1123 | 1123 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
74 | 86 |
| |
75 | 87 |
| |
76 | 88 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 |
| |
58 | 71 |
| |
59 | 72 |
| |
|
0 commit comments
Comments
(0)