diff --git a/cpp/ql/test/query-tests/Critical/OverflowStatic/OverflowStatic.expected b/cpp/ql/test/query-tests/Critical/OverflowStatic/OverflowStatic.expected index e6e2c51f7d9..01a2dfc38b3 100644 --- a/cpp/ql/test/query-tests/Critical/OverflowStatic/OverflowStatic.expected +++ b/cpp/ql/test/query-tests/Critical/OverflowStatic/OverflowStatic.expected @@ -1,3 +1,10 @@ +| test2.c:28:19:28:20 | 41 | Potential buffer-overflow: 'buffer' has size 40 not 41. | +| test2.c:29:26:29:27 | 43 | Potential buffer-overflow: 'buffer' has size 40 not 43. | +| test2.c:31:26:31:27 | 44 | Potential buffer-overflow: 'buffer' has size 40 not 44. | +| test2.c:32:25:32:26 | 45 | Potential buffer-overflow: 'buffer' has size 40 not 45. | +| test2.c:33:26:33:27 | 46 | Potential buffer-overflow: 'buffer' has size 40 not 46. | +| test2.c:34:22:34:23 | 47 | Potential buffer-overflow: 'buffer' has size 40 not 47. | +| test2.c:35:23:35:24 | 48 | Potential buffer-overflow: 'buffer' has size 40 not 48. | | test.c:14:9:14:13 | access to array | Potential buffer-overflow: 'xs' has size 5 but 'xs[5]' is accessed here. | | test.c:15:9:15:13 | access to array | Potential buffer-overflow: 'xs' has size 5 but 'xs[6]' is accessed here. | | test.c:20:9:20:18 | access to array | Potential buffer-overflow: 'ys' has size 5 but 'ys[5]' is accessed here. | diff --git a/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/test.c b/cpp/ql/test/query-tests/Critical/OverflowStatic/test2.c similarity index 100% rename from cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/test.c rename to cpp/ql/test/query-tests/Critical/OverflowStatic/test2.c diff --git a/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.expected b/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.expected deleted file mode 100644 index 9bc0658a02d..00000000000 --- a/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.expected +++ /dev/null @@ -1,7 +0,0 @@ -| test.c:28:19:28:20 | 41 | Potential buffer-overflow: 'buffer' has size 40 not 41. | -| test.c:29:26:29:27 | 43 | Potential buffer-overflow: 'buffer' has size 40 not 43. | -| test.c:31:26:31:27 | 44 | Potential buffer-overflow: 'buffer' has size 40 not 44. | -| test.c:32:25:32:26 | 45 | Potential buffer-overflow: 'buffer' has size 40 not 45. | -| test.c:33:26:33:27 | 46 | Potential buffer-overflow: 'buffer' has size 40 not 46. | -| test.c:34:22:34:23 | 47 | Potential buffer-overflow: 'buffer' has size 40 not 47. | -| test.c:35:23:35:24 | 48 | Potential buffer-overflow: 'buffer' has size 40 not 48. | diff --git a/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.qlref b/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.qlref deleted file mode 100644 index 477af9d71d0..00000000000 --- a/cpp/ql/test/query-tests/Security/CWE/CWE-119/semmle/OverflowStatic/OverflowStatic.qlref +++ /dev/null @@ -1 +0,0 @@ -Critical/OverflowStatic.ql