diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 7c439946fc..df2a04fe2b 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -4,6 +4,7 @@ workflow_dispatch: schedule: - cron: "0 3 * * *" + pull_request: jobs: polaris-scan: diff --git a/cpp/arcticdb/CMakeLists.txt b/cpp/arcticdb/CMakeLists.txt index e41495c5d4..a132e02fad 100644 --- a/cpp/arcticdb/CMakeLists.txt +++ b/cpp/arcticdb/CMakeLists.txt @@ -519,7 +519,10 @@ set(arcticdb_srcs version/version_core.cpp version/version_store_api.cpp version/version_utils.cpp - version/version_map_batch_methods.cpp) + version/version_map_batch_methods.cpp + + #================ REMOVE ME ============== + file_with_deliberate_errors.cpp) add_library(arcticdb_core_object OBJECT ${arcticdb_srcs}) diff --git a/cpp/arcticdb/file_with_deliberate_errors.cpp b/cpp/arcticdb/file_with_deliberate_errors.cpp new file mode 100644 index 0000000000..35068a50ab --- /dev/null +++ b/cpp/arcticdb/file_with_deliberate_errors.cpp @@ -0,0 +1,12 @@ +#include +#include + +void f() { + int* use_after_delete = new int(10); + delete use_after_delete; + std::cout<<*use_after_delete; + + std::vector use_after_move(10); + std::vector moved = std::move(use_after_move); + std::cout<