Skip to content

CBMC-cover tests fail due to an invariant violation #1622

Closed
@reuk

Description

@reuk

While working on #1612, I found an error in goto-instrument/cover.cpp. The problem is that the begin() of an empty vector is dereferenced, leading to undefined behavior.

Adding an invariant to ensure the vector has at least one element causes several tests in cbmc-cover to fail. These tests have been disabled in this commit.

The original author of the code appears to be @theyoucheng, so I suggest that they are assigned to fix this problem. The result of the fix should be that the failing tests are re-enabled.

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