Skip to content

Use of uninitialized value in build_goto_trace.cpp #498

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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