Skip to content

Commit 4ccddce

Browse files
committed
Add intentional mistakes in a file
1 parent 3859fe3 commit 4ccddce

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/static_analysis.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
workflow_dispatch:
55
schedule:
66
- cron: "0 3 * * *"
7-
7+
pull_request:
88
jobs:
99
polaris-scan:
1010
name: Polaris Coverity Static Analysis
@@ -71,3 +71,11 @@
7171
polaris_reports_sarif_groupSCAIssues: true
7272
polaris_upload_sarif_report: true
7373
polaris_prComment_severities: "high,critical,medium,low"
74+
75+
- name: Upload .bridge artifact
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: Bridge Logs
79+
path: ${{github.workspace}}/.bridge
80+
if-no-files-found: error
81+
include-hidden-files: true

cpp/arcticdb/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,10 @@ set(arcticdb_srcs
533533
version/version_utils.cpp
534534
version/symbol_list.cpp
535535
version/version_map_batch_methods.cpp
536-
storage/s3/ec2_utils.cpp)
536+
storage/s3/ec2_utils.cpp
537+
538+
#================ REMOVE ME ==============
539+
file_with_deliberate_errors.cpp)
537540

538541
add_library(arcticdb_core_object OBJECT ${arcticdb_srcs})
539542

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <vector>
2+
#include <iostream>
3+
4+
void f() {
5+
int* use_after_delete = new int(10);
6+
delete use_after_delete;
7+
std::cout<<*use_after_delete;
8+
9+
std::vector<int> use_after_move(10);
10+
std::vector<int> moved = std::move(use_after_move);
11+
std::cout<<use_after_move[0];
12+
}

0 commit comments

Comments
 (0)