File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
swift/ql/test/query-tests/Security/CWE-611 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class XMLDocument {
37
37
func testUrl( ) {
38
38
let remoteString = String ( contentsOf: URL ( string: " http://example.com/ " ) !)
39
39
let remoteUrl = URL ( string: remoteString) !
40
- let _ = XMLDocument ( contentsOf: remoteUrl, options: [ . nodeLoadExternalEntitiesAlways] ) // $ hasXXE=39
40
+ let _ = XMLDocument ( contentsOf: remoteUrl, options: [ . nodeLoadExternalEntitiesAlways] ) // $ hasXXE=38
41
41
}
42
42
43
43
func testUrlSafeImplicit( ) {
@@ -55,7 +55,7 @@ func testUrlSafeExplicit() {
55
55
func testData( ) {
56
56
let remoteString = String ( contentsOf: URL ( string: " http://example.com/ " ) !)
57
57
let remoteData = Data ( remoteString)
58
- let _ = XMLDocument ( data: remoteData, options: [ . nodeLoadExternalEntitiesAlways] ) // $ hasXXE=57
58
+ let _ = XMLDocument ( data: remoteData, options: [ . nodeLoadExternalEntitiesAlways] ) // $ hasXXE=56
59
59
}
60
60
61
61
func testDataSafeImplicit( ) {
@@ -72,7 +72,7 @@ func testDataSafeExplicit() {
72
72
73
73
func testString( ) {
74
74
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
76
76
}
77
77
78
78
func testStringSafeImplicit( ) {
You can’t perform that action at this time.
0 commit comments