- Notifications
You must be signed in to change notification settings - Fork28
Commitd5b9c2b
committed
Disallow null category in crosstab_hash
While building a hash map of categories in load_categories_hash,resulting category names have not thus far been checked to ensurethey are not null. Prior to pg12 null category names worked to theextent that they did not crash on some platforms. This is becausethose system libraries have an snprintf which can deal with beingpassed a null pointer argument for a string. But even in those casesnull categories did nothing useful. And on some platforms it crashed.As of pg12, our own version of snprintf gets called, and it doesnot deal with null pointer arguments at all, and crashes consistently.Fix that by disallowing null categories. They never worked usefully,and no one has ever asked for them to work previously. Back-patch toall supported branches.Reported-By: Ireneusz PlutaDiscussion:https://postgr.es/m/16176-7489719b05e4303c@postgresql.org1 parent39ebb94 commitd5b9c2b
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
765 | 770 |
| |
766 | 771 |
| |
767 | 772 |
| |
|
0 commit comments
Comments
(0)