Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

xml.c

  • Tom Lane's avatar
    9f7a664f
    Avoid failure when selecting a namespace node in XMLTABLE. · 9f7a664f
    Tom Lane authored
    It appears that libxml2 doesn't bother to set the "children" field of
    an XML_NAMESPACE_DECL node to null; that field just contains garbage.
    In v10 and v11, this can result in a crash in XMLTABLE().  The rewrite
    done in commit 251cf2e2 fixed this, somewhat accidentally, in v12.
    We're not going to back-patch 251cf2e2, however.  The case apparently
    doesn't have wide use, so rather than risk introducing other problems,
    just add a safety check to throw an error.
    
    Even though no bug manifests in v12/HEAD, add the relevant test case
    there too, to prevent future regressions.
    
    Chapman Flack (per private report)
    9f7a664f
    History
    Avoid failure when selecting a namespace node in XMLTABLE.
    Tom Lane authored
    It appears that libxml2 doesn't bother to set the "children" field of
    an XML_NAMESPACE_DECL node to null; that field just contains garbage.
    In v10 and v11, this can result in a crash in XMLTABLE().  The rewrite
    done in commit 251cf2e2 fixed this, somewhat accidentally, in v12.
    We're not going to back-patch 251cf2e2, however.  The case apparently
    doesn't have wide use, so rather than risk introducing other problems,
    just add a safety check to throw an error.
    
    Even though no bug manifests in v12/HEAD, add the relevant test case
    there too, to prevent future regressions.
    
    Chapman Flack (per private report)