forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit62cb742
committed
Avoid dangling-pointer usage in pg_basebackup progress reports.
Ill-considered refactoring in23a1c65 led to progress_filenamesometimes pointing to data that had gone out of scope. The mostbulletproof fix is to hang onto a copy of whatever's passed in.Compared to the work spent elsewhere per file, that's not veryexpensive, plus we can skip it except in verbose logging mode.Per buildfarm.Discussion:https://postgr.es/m/20220212211316.GK31460@telsasoft.com1 parent138c51b commit62cb742
1 file changed
+16
-5
lines changedLines changed: 16 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| |||
775 | 775 |
| |
776 | 776 |
| |
777 | 777 |
| |
| 778 | + | |
| 779 | + | |
778 | 780 |
| |
779 | 781 |
| |
780 | 782 |
| |
781 | 783 |
| |
782 |
| - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
783 | 794 |
| |
784 | 795 |
| |
785 | 796 |
| |
| |||
1258 | 1269 |
| |
1259 | 1270 |
| |
1260 | 1271 |
| |
1261 |
| - | |
| 1272 | + | |
1262 | 1273 |
| |
1263 | 1274 |
| |
1264 | 1275 |
| |
| |||
1662 | 1673 |
| |
1663 | 1674 |
| |
1664 | 1675 |
| |
1665 |
| - | |
| 1676 | + | |
1666 | 1677 |
| |
1667 | 1678 |
| |
1668 | 1679 |
| |
| |||
2161 | 2172 |
| |
2162 | 2173 |
| |
2163 | 2174 |
| |
2164 |
| - | |
| 2175 | + | |
2165 | 2176 |
| |
2166 | 2177 |
| |
2167 | 2178 |
| |
|
0 commit comments
Comments
(0)