User: | Jiri Slaby |
Error type: | Reachable Error Location |
Error type description: | A specified error location is reachable in some program path |
File location: | loops/verisec_sendmail__tTflag_arr_one_loop_unsafe.i |
Line in file: | 3 |
Project: | SV-COMP 2013 |
Project version: | 2.6.28 |
Tools: |
Manual Work
|
Entered: | 2013-01-17 16:57:54 UTC |
1void __VERIFIER_assert(int cond) { 2 if (!(cond)) { 3 ERROR: goto ERROR; 4 } 5 return; 6} 7 8int main (void) 9{ 10 char in[11]; 11 char *s; 12 unsigned char c; 13 int i, j; 14 int idx_in; 15 in[10] = 0; 16 idx_in = 0; 17 s = in; 18 i = 0; 19 c = in[idx_in]; 20 while (('0' <= c) && (c <= '9')) 21 { 22 j = c - '0'; 23 i = i * 10 + j; 24 idx_in++; 25 c = in[idx_in]; 26 } 27 28 __VERIFIER_assert (i >= 0); 29 return 0; 30}