forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita7ca25c
committed
Avoid fetching past the end of the indoption array.
pg_get_indexdef_worker carelessly fetched indoption entries even fornon-key index columns that don't have one. 99.999% of the time thiswould be harmless, since the code wouldn't examine the value ... butsome fine day this will be a fetch off the end of memory, resultingin SIGSEGV.Detected through valgrind testing. Odd that the buildfarm's valgrindcritters haven't noticed.1 parent10e3991 commita7ca25c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
1309 | 1308 | | |
1310 | 1309 | | |
1311 | 1310 | | |
| |||
1367 | 1366 | | |
1368 | 1367 | | |
1369 | 1368 | | |
1370 | | - | |
| 1369 | + | |
| 1370 | + | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
1374 | 1373 | | |
1375 | 1374 | | |
1376 | 1375 | | |
| |||
0 commit comments
Comments
(0)