Skip to content

Use of uninitialized value in build_goto_trace.cpp #498

Closed
@mgudemann

Description

@mgudemann

The enumeration assignment_typet in SSA_stept is not initialized. To check whether its value is read prior to initialization, I amended the enum with an explicit UNINIT and added assert where the value is read. This shows an uninitialized read in build_goto_trace.cpp:217

    // drop PHI and GUARD assignments altogether
    assert(SSA_step.assignment_type!=symex_targett::UNINIT);
    if(it->is_assignment() &&
       (SSA_step.assignment_type==symex_target_equationt::PHI ||
        SSA_step.assignment_type==symex_target_equationt::GUARD))
      continue;

I will look further where else this problem persists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions