forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1ffb63a
committed
Fix bogus Name assignment in CreateStatistics
Apparently, it doesn't work to use a plain cstring as a Name datum: youmay end up having random bytes because of failing to zero the bytesafter the terminating \0, as indicated by valgrind. I introduced thisbug in5564c11, so backpatch this fix to REL_10_STABLE, like thatcommit.While at it, fix a slightly misleading comment, pointed out by DavidRowley.1 parent4c831ae commit1ffb63a
2 files changed
+7
-3
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
| |||
135 | 136 |
| |
136 | 137 |
| |
137 | 138 |
| |
138 |
| - | |
| 139 | + | |
| 140 | + | |
139 | 141 |
| |
140 | 142 |
| |
141 | 143 |
| |
| |||
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
| 149 | + | |
147 | 150 |
| |
148 | 151 |
| |
149 | 152 |
| |
| |||
307 | 310 |
| |
308 | 311 |
| |
309 | 312 |
| |
310 |
| - | |
| 313 | + | |
311 | 314 |
| |
312 | 315 |
| |
313 | 316 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2250 | 2250 |
| |
2251 | 2251 |
| |
2252 | 2252 |
| |
2253 |
| - | |
| 2253 | + | |
| 2254 | + | |
2254 | 2255 |
| |
2255 | 2256 |
| |
2256 | 2257 |
| |
|
0 commit comments
Comments
(0)