Skip to content

Commit c9c22fd

Browse files
edvraasmowton
authored andcommitted
Change the message
1 parent 8414759 commit c9c22fd

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ql/src/experimental/CWE-326/InsufficientKeySize.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ class RsaKeyTrackingConfiguration extends DataFlow::Configuration {
3131

3232
from RsaKeyTrackingConfiguration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
3333
where cfg.hasFlowPath(source, sink)
34-
select sink, source, sink, "The size of RSA key '$@' should be at least 2048 bits.", sink,
35-
source.getNode().toString()
34+
select sink, source, sink, "The size of this RSA key should be at least 2048 bits."

ql/test/experimental/CWE-326/InsufficientKeySize.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ nodes
1010
| InsufficientKeySize.go:25:11:25:14 | definition of size : int | semmle.label | definition of size : int |
1111
| InsufficientKeySize.go:26:31:26:34 | size | semmle.label | size |
1212
#select
13-
| InsufficientKeySize.go:9:31:9:34 | 1024 | InsufficientKeySize.go:9:31:9:34 | 1024 | InsufficientKeySize.go:9:31:9:34 | 1024 | The size of RSA key '$@' should be at least 2048 bits. | InsufficientKeySize.go:9:31:9:34 | 1024 | 1024 |
14-
| InsufficientKeySize.go:14:31:14:34 | size | InsufficientKeySize.go:13:10:13:13 | 1024 : int | InsufficientKeySize.go:14:31:14:34 | size | The size of RSA key '$@' should be at least 2048 bits. | InsufficientKeySize.go:14:31:14:34 | size | 1024 |
15-
| InsufficientKeySize.go:26:31:26:34 | size | InsufficientKeySize.go:18:7:18:10 | 1024 : int | InsufficientKeySize.go:26:31:26:34 | size | The size of RSA key '$@' should be at least 2048 bits. | InsufficientKeySize.go:26:31:26:34 | size | 1024 |
13+
| InsufficientKeySize.go:9:31:9:34 | 1024 | InsufficientKeySize.go:9:31:9:34 | 1024 | InsufficientKeySize.go:9:31:9:34 | 1024 | The size of this RSA key should be at least 2048 bits. |
14+
| InsufficientKeySize.go:14:31:14:34 | size | InsufficientKeySize.go:13:10:13:13 | 1024 : int | InsufficientKeySize.go:14:31:14:34 | size | The size of this RSA key should be at least 2048 bits. |
15+
| InsufficientKeySize.go:26:31:26:34 | size | InsufficientKeySize.go:18:7:18:10 | 1024 : int | InsufficientKeySize.go:26:31:26:34 | size | The size of this RSA key should be at least 2048 bits. |

0 commit comments

Comments
 (0)