Skip to content
Snippets Groups Projects
Commit 0ad0a150 authored by an7s's avatar an7s
Browse files

Commit simple test from smartfuzz

Former-commit-id: e4705b4061ef88d4b7e5ca16b63a2100c6ea6c40
parent 72db1c7c
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,7 @@ integerbug_examples/C1_Number_Handling/CWE_839/CWE_839_Example_1_bad.c -text
integerbug_examples/C1_Number_Handling/CWE_839/CWE_839_Example_1_bad.conf -text
integerbug_examples/C1_Number_Handling/CWE_839/CWE_839_Example_1_bad.ncexe.conf -text
integerbug_examples/C1_Number_Handling/CWE_839/Makefile -text
integerbug_examples/smartfuzz/simpletest.c -text
stock_examples/Makefile -text
stock_examples/apache2.stock -text
stock_examples/awk.stock -text
......
int main (int argc, char** argv)
{
printf("%x \n", &argv[1]);
int i = atol(argv[1]);
printf("%x \n", &i);
unsigned int j = 0;
if (i < 10)
{
j = i;
if ( j > 50)
{
printf("Surprise! \n");
return 1;
}
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment