forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6b87416
committed
Fix access-off-end-of-array in clog.c.
Sloppy loop coding in set_status_by_pages() resulted in fetching one arrayelement more than it should from the subxids[] array. The odds of thisresulting in SIGSEGV are pretty small, but we've certainly seen that happenwith similar mistakes elsewhere. While at it, we can get rid of an extraTransactionIdToPage() calculation per loop.Per report from David Binderman. Back-patch to all supported branches,since this code is quite old.Discussion:https://postgr.es/m/HE1PR0802MB2331CBA919CBFFF0C465EB429C710@HE1PR0802MB2331.eurprd08.prod.outlook.com1 parentc3d9a66 commit6b87416
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
| 244 | + | |
| 245 | + | |
244 | 246 |
| |
245 | 247 |
| |
246 | 248 |
| |
| 249 | + | |
247 | 250 |
| |
248 |
| - | |
| 251 | + | |
249 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
250 | 256 |
| |
251 | 257 |
| |
252 |
| - | |
| 258 | + | |
253 | 259 |
| |
254 | 260 |
| |
255 | 261 |
| |
256 | 262 |
| |
257 | 263 |
| |
258 |
| - | |
| 264 | + | |
259 | 265 |
| |
260 | 266 |
| |
261 | 267 |
| |
|
0 commit comments
Comments
(0)