Commit 5fa7f44
nsp: check return value of mktime()
CID 1558654: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW)
2. known_value_assign: tmp_time = mktime(&tmp_tm), its value is now -1.
3. overflow_const: Expression (uint64_t)tmp_time + 11644473600ULL,
where (uint64_t)tmp_time is known to be equal to -1, underflows the
type of (uint64_t)tmp_time + 11644473600ULL, which is type unsigned
long long.
Fixes: gromox-0~6661 parent 40c7ae0 commit 5fa7f44
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments