- Notifications
You must be signed in to change notification settings - Fork28
Commit69e931f
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 parentd441cff commit69e931f
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
| 230 | + | |
229 | 231 |
| |
230 | 232 |
| |
231 | 233 |
| |
| 234 | + | |
232 | 235 |
| |
233 |
| - | |
| 236 | + | |
234 | 237 |
| |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 |
| |
236 | 242 |
| |
237 |
| - | |
| 243 | + | |
238 | 244 |
| |
239 | 245 |
| |
240 | 246 |
| |
241 | 247 |
| |
242 | 248 |
| |
243 |
| - | |
| 249 | + | |
244 | 250 |
| |
245 | 251 |
| |
246 | 252 |
| |
|
0 commit comments
Comments
(0)