- Notifications
You must be signed in to change notification settings - Fork28
Commit3727afa
committed
Fix pg_type.typlen for newly-revived line type.
Commit261c7d4 removed the "m" fieldfrom struct LINE, but neglected to make pg_type.h's idea of the type'ssize match. This resulted in reading past the end of palloc'd LINEvalues when inserting them into tuples etc. In principle that couldcause a SIGSEGV, though the odds of detectable problems seem low.Bump catversion since this makes an incompatible on-disk format change.Note that if the line type had been in use in the field, this wouldbreak pg_upgrade'ability of databases containing line values; butit seems unlikely that there are any (they'd have had to be compiledwith -DENABLE_LINE_TYPE).Spotted by Andres Freund.1 parentb2f7bd7 commit3727afa
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 |
| - | |
| 395 | + | |
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
|
0 commit comments
Comments
(0)