Update java/ql/test/query-tests/security/CWE-611/DocumentBuilderTests.java

Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
This commit is contained in:
Chris Smowton
2021-11-25 12:52:08 +00:00
committed by GitHub
parent 9eb9eb606e
commit 9540beeda9

View File

@@ -32,7 +32,7 @@ class DocumentBuilderTests {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true);
DocumentBuilder builder = factory.newDocumentBuilder();
builder.parse(sock.getInputStream()); //safe -- secure-processing by itself is insufficient
builder.parse(sock.getInputStream()); //unsafe -- secure-processing by itself is insufficient
}
public void enableDTD(Socket sock) throws Exception {