Skip to content

Commit

Permalink
remove me: test undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGuerra committed Feb 9, 2024
1 parent d3042d3 commit 1b315d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion userspace/libsinsp/examples/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ int main(int argc, char** argv)
{
sinsp inspector;

int k = 0x7fffffff;
k += argc;

#ifndef _WIN32
parse_CLI_options(inspector, argc, argv);

Expand Down Expand Up @@ -410,7 +413,7 @@ int main(int argc, char** argv)
}
catch(const sinsp_exception& e)
{
cerr << "[ERROR] Unable to set filter: " << e.what() << endl;
cerr << "[ERROR] Unable to set filter: " << e.what() << "k = " << k << endl;
}
}

Expand Down

0 comments on commit 1b315d2

Please sign in to comment.