MCPcopy Create free account
hub / github.com/bombela/backward-cpp / badass_function

Function badass_function

test/suicide.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33using namespace backward;
34
35void badass_function() {
36 char *ptr = (char *)42;
37 *ptr = 42;
38}
39
40TEST_SEGFAULT(invalid_write) { badass_function(); }
41

Callers 1

TEST_SEGFAULTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected