Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef __time64_t time_t;
- uint32_t unixtime; /* seconds since 1970 */
- static int ipfix_print_newmsg(....)
- {
- ....
- strftime(timebuf, 40, "%Y-%m-%d %T %Z",
- localtime( (const time_t *) &(hdr->u.nf9.unixtime) ));
- ....
- }
- This suspicious code was found in NetXMS project by PVS-Studio static code analyzer.
- Warning message is:
- V114 Dangerous explicit type pointer conversion: (const time_t *) & (hdr->u.nf9.unixtime) ipfix_print.c 68
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement