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 {
3737func 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
4343func testUrlSafeImplicit( ) {
@@ -55,7 +55,7 @@ func testUrlSafeExplicit() {
5555func 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
6161func testDataSafeImplicit( ) {
@@ -72,7 +72,7 @@ func testDataSafeExplicit() {
7272
7373func 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
7878func testStringSafeImplicit( ) {
You can’t perform that action at this time.
0 commit comments