rapidcheck icon indicating copy to clipboard operation
rapidcheck copied to clipboard

Segmentation fault when trying to print counterexample with null pointers

Open nikola-benes opened this issue 8 years ago • 0 comments

The following code makes rapidcheck segfault:

void foo() {
    int* ptr = nullptr;
    RC_ASSERT(ptr != nullptr);
}

int main() {
    rc::check("foo", foo);
}

nikola-benes avatar Aug 23 '17 14:08 nikola-benes