Skip to content

Commit

Permalink
fix: stack-use-after-scope by AddressSanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
caballa committed Apr 3, 2024
1 parent e32aa83 commit 147c42e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Clam/Clam.cc
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,9 @@ class IntraClamImpl {

if (dumpCrabIR || dumpStdout) {
std::vector<std::unique_ptr<block_annotation_t>> annotations;
std::vector<varname_t> shadow_varnames;
assumption_analysis_t unproven_assumption_analyzer(cfg);
if (params.print_invars != InvariantPrinterOptions::NONE) {
std::vector<varname_t> shadow_varnames;
assumption_analysis_t unproven_assumption_analyzer(cfg);

if (!params.keep_shadow_vars) {
shadow_varnames = m_vfac.get_shadow_vars();
}
Expand Down

0 comments on commit 147c42e

Please sign in to comment.