Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
https://github.com/apache/calcite/pull/2892#discussion_r964468020
DocumentBuilderFactory use in DiffRepository needs changes like those in https://github.com/apache/calcite/pull/2892
There is also an issue with `this.doc = docBuilder.parse(refFile.openStream());` - the `refFile.openStream()` gives an InputStream that should be closed - try with resources pattern would make sense.
Attachments
Issue Links
- relates to
-
CALCITE-5263 XML External Entity (XEE) vulnerability that allows a SQL query to read the contents of files via the SQL functions EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM or EXTRACT_VALUE (CVE-2022-39135)
- Closed
- links to