We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3a142 commit a618231Copy full SHA for a618231
regression/cbmc-library/getenv-01/main.c
@@ -5,4 +5,8 @@ int main()
5
char *something;
6
// there should not be any overflow in there
7
something = getenv("HOME");
8
+ if(something != NULL)
9
+ return something[0];
10
+ else
11
+ return 0;
12
}
regression/cbmc-library/getenv-01/test.desc
@@ -1,6 +1,6 @@
1
CORE
2
main.c
3
---signed-overflow-check --unsigned-overflow-check --pointer-overflow-check --pointer-check --bounds-check
+--signed-overflow-check --unsigned-overflow-check --pointer-overflow-check --pointer-check --bounds-check --memory-leak-check
4
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
0 commit comments