Skip to content

Commit cbe5243

Browse files
committed
Swift: Accept test regressions. :(
1 parent 915efff commit cbe5243

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

swift/ql/test/query-tests/Security/CWE-259/ConstantPassword.expected

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ edges
1818
| rncryptor.swift:69:24:69:24 | abc123 : | rncryptor.swift:107:61:107:61 | myConstPassword |
1919
| rncryptor.swift:69:24:69:24 | abc123 : | rncryptor.swift:108:97:108:97 | myConstPassword |
2020
| test.swift:43:39:43:134 | [...] : | test.swift:51:30:51:30 | constantPassword |
21-
| test.swift:43:39:43:134 | [...] : | test.swift:56:40:56:40 | constantPassword |
22-
| test.swift:43:39:43:134 | [...] : | test.swift:62:40:62:40 | constantPassword |
2321
| test.swift:43:39:43:134 | [...] : | test.swift:67:34:67:34 | constantPassword |
2422
nodes
2523
| rncryptor.swift:69:24:69:24 | abc123 : | semmle.label | abc123 : |
@@ -43,8 +41,6 @@ nodes
4341
| rncryptor.swift:108:97:108:97 | myConstPassword | semmle.label | myConstPassword |
4442
| test.swift:43:39:43:134 | [...] : | semmle.label | [...] : |
4543
| test.swift:51:30:51:30 | constantPassword | semmle.label | constantPassword |
46-
| test.swift:56:40:56:40 | constantPassword | semmle.label | constantPassword |
47-
| test.swift:62:40:62:40 | constantPassword | semmle.label | constantPassword |
4844
| test.swift:67:34:67:34 | constantPassword | semmle.label | constantPassword |
4945
subpaths
5046
#select
@@ -67,6 +63,4 @@ subpaths
6763
| rncryptor.swift:107:61:107:61 | myConstPassword | rncryptor.swift:69:24:69:24 | abc123 : | rncryptor.swift:107:61:107:61 | myConstPassword | The value 'abc123' is used as a constant password. |
6864
| rncryptor.swift:108:97:108:97 | myConstPassword | rncryptor.swift:69:24:69:24 | abc123 : | rncryptor.swift:108:97:108:97 | myConstPassword | The value 'abc123' is used as a constant password. |
6965
| test.swift:51:30:51:30 | constantPassword | test.swift:43:39:43:134 | [...] : | test.swift:51:30:51:30 | constantPassword | The value '[...]' is used as a constant password. |
70-
| test.swift:56:40:56:40 | constantPassword | test.swift:43:39:43:134 | [...] : | test.swift:56:40:56:40 | constantPassword | The value '[...]' is used as a constant password. |
71-
| test.swift:62:40:62:40 | constantPassword | test.swift:43:39:43:134 | [...] : | test.swift:62:40:62:40 | constantPassword | The value '[...]' is used as a constant password. |
7266
| test.swift:67:34:67:34 | constantPassword | test.swift:43:39:43:134 | [...] : | test.swift:67:34:67:34 | constantPassword | The value '[...]' is used as a constant password. |

swift/ql/test/query-tests/Security/CWE-760/ConstantSalt.expected

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ edges
1515
| rncryptor.swift:60:29:60:29 | 0 : | rncryptor.swift:5:5:5:29 | [summary param] 0 in Data.init(_:) : |
1616
| rncryptor.swift:60:29:60:29 | 0 : | rncryptor.swift:60:24:60:30 | call to Data.init(_:) : |
1717
| test.swift:43:35:43:130 | [...] : | test.swift:51:49:51:49 | constantSalt |
18-
| test.swift:43:35:43:130 | [...] : | test.swift:56:59:56:59 | constantSalt |
19-
| test.swift:43:35:43:130 | [...] : | test.swift:62:59:62:59 | constantSalt |
2018
| test.swift:43:35:43:130 | [...] : | test.swift:67:53:67:53 | constantSalt |
2119
nodes
2220
| file://:0:0:0:0 | [summary] to write: return (return) in Data.init(_:) : | semmle.label | [summary] to write: return (return) in Data.init(_:) : |
@@ -37,8 +35,6 @@ nodes
3735
| rncryptor.swift:79:160:79:160 | myConstantSalt2 | semmle.label | myConstantSalt2 |
3836
| test.swift:43:35:43:130 | [...] : | semmle.label | [...] : |
3937
| test.swift:51:49:51:49 | constantSalt | semmle.label | constantSalt |
40-
| test.swift:56:59:56:59 | constantSalt | semmle.label | constantSalt |
41-
| test.swift:62:59:62:59 | constantSalt | semmle.label | constantSalt |
4238
| test.swift:67:53:67:53 | constantSalt | semmle.label | constantSalt |
4339
subpaths
4440
| rncryptor.swift:59:29:59:29 | abcdef123456 : | rncryptor.swift:5:5:5:29 | [summary param] 0 in Data.init(_:) : | file://:0:0:0:0 | [summary] to write: return (return) in Data.init(_:) : | rncryptor.swift:59:24:59:43 | call to Data.init(_:) : |
@@ -55,6 +51,4 @@ subpaths
5551
| rncryptor.swift:78:135:78:135 | myConstantSalt1 | rncryptor.swift:59:29:59:29 | abcdef123456 : | rncryptor.swift:78:135:78:135 | myConstantSalt1 | The value 'abcdef123456' is used as a constant salt, which is insecure for hashing passwords. |
5652
| rncryptor.swift:79:160:79:160 | myConstantSalt2 | rncryptor.swift:60:29:60:29 | 0 : | rncryptor.swift:79:160:79:160 | myConstantSalt2 | The value '0' is used as a constant salt, which is insecure for hashing passwords. |
5753
| test.swift:51:49:51:49 | constantSalt | test.swift:43:35:43:130 | [...] : | test.swift:51:49:51:49 | constantSalt | The value '[...]' is used as a constant salt, which is insecure for hashing passwords. |
58-
| test.swift:56:59:56:59 | constantSalt | test.swift:43:35:43:130 | [...] : | test.swift:56:59:56:59 | constantSalt | The value '[...]' is used as a constant salt, which is insecure for hashing passwords. |
59-
| test.swift:62:59:62:59 | constantSalt | test.swift:43:35:43:130 | [...] : | test.swift:62:59:62:59 | constantSalt | The value '[...]' is used as a constant salt, which is insecure for hashing passwords. |
6054
| test.swift:67:53:67:53 | constantSalt | test.swift:43:35:43:130 | [...] : | test.swift:67:53:67:53 | constantSalt | The value '[...]' is used as a constant salt, which is insecure for hashing passwords. |
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
edges
2-
| test.swift:20:45:20:45 | 99999 : | test.swift:33:22:33:43 | call to getLowIterationCount() : |
3-
| test.swift:33:22:33:43 | call to getLowIterationCount() : | test.swift:37:84:37:84 | lowIterations |
4-
| test.swift:33:22:33:43 | call to getLowIterationCount() : | test.swift:44:84:44:84 | lowIterations |
52
nodes
6-
| test.swift:20:45:20:45 | 99999 : | semmle.label | 99999 : |
7-
| test.swift:33:22:33:43 | call to getLowIterationCount() : | semmle.label | call to getLowIterationCount() : |
8-
| test.swift:37:84:37:84 | lowIterations | semmle.label | lowIterations |
9-
| test.swift:38:84:38:84 | 80000 | semmle.label | 80000 |
10-
| test.swift:44:84:44:84 | lowIterations | semmle.label | lowIterations |
11-
| test.swift:45:84:45:84 | 80000 | semmle.label | 80000 |
123
subpaths
134
#select
14-
| test.swift:37:84:37:84 | lowIterations | test.swift:20:45:20:45 | 99999 : | test.swift:37:84:37:84 | lowIterations | The value '99999' is an insufficient number of iterations for secure password hashing. |
15-
| test.swift:38:84:38:84 | 80000 | test.swift:38:84:38:84 | 80000 | test.swift:38:84:38:84 | 80000 | The value '80000' is an insufficient number of iterations for secure password hashing. |
16-
| test.swift:44:84:44:84 | lowIterations | test.swift:20:45:20:45 | 99999 : | test.swift:44:84:44:84 | lowIterations | The value '99999' is an insufficient number of iterations for secure password hashing. |
17-
| test.swift:45:84:45:84 | 80000 | test.swift:45:84:45:84 | 80000 | test.swift:45:84:45:84 | 80000 | The value '80000' is an insufficient number of iterations for secure password hashing. |

0 commit comments

Comments
 (0)