forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8f0a97d
committed
Fix segmentation fault in MergeInheritedAttribute()
While converting a pg_attribute tuple into a ColumnDef,ColumnDef::compression remains NULL if there is no compression methodset fot the attribute. Calling strcmp() with NULLColumnDef::compression, when comparing compression methods of parents,causes segmentation fault in MergeInheritedAttribute(). Skipcomparing compression methods if either of them is NULL.Author: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://www.postgresql.org/message-id/b22a6834-aacb-7b18-0424-a3f5fe889667%40gmail.com1 parent91e7115 commit8f0a97d
File tree
3 files changed
+22
-12
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+22
-12
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3432 | 3432 |
| |
3433 | 3433 |
| |
3434 | 3434 |
| |
3435 |
| - | |
3436 |
| - | |
3437 |
| - | |
3438 |
| - | |
3439 |
| - | |
3440 |
| - | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
3441 | 3445 |
| |
3442 | 3446 |
| |
3443 | 3447 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 |
| - | |
227 |
| - | |
| 226 | + | |
| 227 | + | |
228 | 228 |
| |
229 | 229 |
| |
230 | 230 |
| |
231 |
| - | |
| 231 | + | |
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 |
| |
236 | 239 |
| |
237 | 240 |
| |
| |||
251 | 254 |
| |
252 | 255 |
| |
253 | 256 |
| |
| 257 | + | |
254 | 258 |
| |
255 | 259 |
| |
256 | 260 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
|
0 commit comments
Comments
(0)