forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite20dd6a
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 parent911e623 commite20dd6a
2 files changed
+7
-3
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
134 | 135 |
| |
135 | 136 |
| |
136 | 137 |
| |
137 |
| - | |
| 138 | + | |
| 139 | + | |
138 | 140 |
| |
139 | 141 |
| |
140 | 142 |
| |
| |||
143 | 145 |
| |
144 | 146 |
| |
145 | 147 |
| |
| 148 | + | |
146 | 149 |
| |
147 | 150 |
| |
148 | 151 |
| |
| |||
306 | 309 |
| |
307 | 310 |
| |
308 | 311 |
| |
309 |
| - | |
| 312 | + | |
310 | 313 |
| |
311 | 314 |
| |
312 | 315 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2255 | 2255 |
| |
2256 | 2256 |
| |
2257 | 2257 |
| |
2258 |
| - | |
| 2258 | + | |
| 2259 | + | |
2259 | 2260 |
| |
2260 | 2261 |
| |
2261 | 2262 |
| |
|
0 commit comments
Comments
(0)