Skip to content

Commit 52bd140

Browse files
committed
Fix test expectations
1 parent c03eab2 commit 52bd140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/ql/test/query-tests/Security/CWE-611/testXMLDocumentXXE.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class XMLDocument {
3737
func testUrl() {
3838
let remoteString = String(contentsOf: URL(string: "http://example.com/")!)
3939
let remoteUrl = URL(string: remoteString)!
40-
let _ = XMLDocument(contentsOf: remoteUrl, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=39
40+
let _ = XMLDocument(contentsOf: remoteUrl, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=38
4141
}
4242

4343
func testUrlSafeImplicit() {
@@ -55,7 +55,7 @@ func testUrlSafeExplicit() {
5555
func testData() {
5656
let remoteString = String(contentsOf: URL(string: "http://example.com/")!)
5757
let remoteData = Data(remoteString)
58-
let _ = XMLDocument(data: remoteData, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=57
58+
let _ = XMLDocument(data: remoteData, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=56
5959
}
6060

6161
func testDataSafeImplicit() {
@@ -72,7 +72,7 @@ func testDataSafeExplicit() {
7272

7373
func testString() {
7474
let remoteString = String(contentsOf: URL(string: "http://example.com/")!)
75-
let _ = XMLDocument(xmlString: remoteString, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=75
75+
let _ = XMLDocument(xmlString: remoteString, options: [.nodeLoadExternalEntitiesAlways]) // $ hasXXE=74
7676
}
7777

7878
func testStringSafeImplicit() {

0 commit comments

Comments
 (0)