Commit a9747be
committed
Make our back branches compatible with libxml2 2.13.x.
This back-patches HEAD commits 066e8ac, 6082b3d, e719248,
and 896cd26 into supported branches. Changes:
* Use xmlAddChildList not xmlAddChild in XMLSERIALIZE
(affects v16 and up only). This was a flat-out coding mistake
that we got away with due to lax checking in previous versions
of xmlAddChild.
* Use xmlParseInNodeContext not xmlParseBalancedChunkMemory.
This is to dodge a bug in xmlParseBalancedChunkMemory in libxm2
releases 2.13.0-2.13.2. While that bug is now fixed upstream and
will probably never be seen in any production-oriented distro, it is
currently a problem on some more-bleeding-edge-friendly platforms.
* Suppress "chunk is not well balanced" errors from libxml2,
unless it is the only error. This eliminates an error-reporting
discrepancy between 2.13 and older releases. This error is
almost always redundant with previous errors, if not flat-out
inappropriate, which is why 2.13 changed the behavior and why
nobody's likely to miss it.
Erik Wienhold and Tom Lane, per report from Frank Streitzig.
Discussion: https://postgr.es/m/trinity-b0161630-d230-4598-9ebc-7a23acdb37cb-1720186432160@3c-app-gmx-bap25
Discussion: https://postgr.es/m/trinity-361ba18b-541a-4fe7-bc63-655ae3a7d599-1720259822452@3c-app-gmx-bs011 parent 4506d18 commit a9747be
3 files changed
+66
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
| |||
1750 | 1750 | | |
1751 | 1751 | | |
1752 | 1752 | | |
| 1753 | + | |
1753 | 1754 | | |
1754 | 1755 | | |
1755 | 1756 | | |
| |||
1758 | 1759 | | |
1759 | 1760 | | |
1760 | 1761 | | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | 1762 | | |
1767 | 1763 | | |
1768 | 1764 | | |
| |||
1785 | 1781 | | |
1786 | 1782 | | |
1787 | 1783 | | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1788 | 1796 | | |
1789 | 1797 | | |
1790 | 1798 | | |
| |||
1794 | 1802 | | |
1795 | 1803 | | |
1796 | 1804 | | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1804 | 1810 | | |
1805 | | - | |
| 1811 | + | |
1806 | 1812 | | |
1807 | | - | |
1808 | | - | |
| 1813 | + | |
| 1814 | + | |
1809 | 1815 | | |
1810 | 1816 | | |
1811 | 1817 | | |
| |||
1822 | 1828 | | |
1823 | 1829 | | |
1824 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
1825 | 1834 | | |
1826 | 1835 | | |
1827 | 1836 | | |
| |||
1834 | 1843 | | |
1835 | 1844 | | |
1836 | 1845 | | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1837 | 1853 | | |
1838 | 1854 | | |
1839 | 1855 | | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1844 | 1866 | | |
| 1867 | + | |
1845 | 1868 | | |
1846 | 1869 | | |
1847 | 1870 | | |
1848 | 1871 | | |
1849 | 1872 | | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1850 | 1878 | | |
1851 | 1879 | | |
1852 | 1880 | | |
| |||
1866 | 1894 | | |
1867 | 1895 | | |
1868 | 1896 | | |
1869 | | - | |
| 1897 | + | |
| 1898 | + | |
1870 | 1899 | | |
1871 | 1900 | | |
1872 | 1901 | | |
| |||
2085 | 2114 | | |
2086 | 2115 | | |
2087 | 2116 | | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
2088 | 2130 | | |
2089 | 2131 | | |
2090 | 2132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 257 | | |
261 | 258 | | |
262 | 259 | | |
263 | 260 | | |
264 | 261 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 262 | | |
269 | 263 | | |
270 | 264 | | |
| |||
283 | 277 | | |
284 | 278 | | |
285 | 279 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 280 | | |
290 | 281 | | |
291 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | | - | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
278 | | - | |
279 | 276 | | |
280 | 277 | | |
281 | 278 | | |
| |||
0 commit comments