- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit0075a5c
committed
Adapt appendPsqlMetaConnect() to the new fmtId() encoding expectations.
We need to tell fmtId() what encoding to assume, but this functiondoesn't know that. Fortunately we can fix that without changing thefunction's API, because we can just use SQL_ASCII. That's becausedatabase names in connection requests are effectively binary not text:no encoding-aware processing will happen on them.This fixes XversionUpgrade failures seen in the buildfarm. Thealternative of having pg_upgrade use setFmtEncoding() is unappetizing,given that it's connecting to multiple databases that may havedifferent encodings.Andres Freund, Noah Misch, Tom LaneSecurity:CVE-2025-10941 parent41343f8 commit0075a5c
1 file changed
+14
-5
lines changedLines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
790 | 790 |
| |
791 | 791 |
| |
792 | 792 |
| |
793 |
| - | |
794 | 793 |
| |
795 | 794 |
| |
796 | 795 |
| |
797 | 796 |
| |
798 | 797 |
| |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
799 | 807 |
| |
800 | 808 |
| |
801 | 809 |
| |
802 |
| - | |
803 |
| - | |
804 | 810 |
| |
805 | 811 |
| |
806 | 812 |
| |
807 | 813 |
| |
808 | 814 |
| |
809 | 815 |
| |
810 |
| - | |
| 816 | + | |
811 | 817 |
| |
812 | 818 |
| |
813 | 819 |
| |
814 | 820 |
| |
815 |
| - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
816 | 825 |
| |
817 | 826 |
| |
818 | 827 |
| |
|
0 commit comments
Comments
(0)