Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _ftprintf fwprintf
- static __inline char * __CRTDECL ctime(const time_t * _Time);
- BOOL LIBNETXMS_EXPORTABLE SEHServiceExceptionHandler(....)
- {
- ....
- _ftprintf(m_pExInfoFile,
- _T("%s CRASH DUMP\n%s\n"),
- szProcNameUppercase,
- ctime(&t));
- ....
- }
- This suspicious code was found in NetXMS project by PVS-Studio static code analyzer.
- Warning message is:
- V576 Incorrect format. Consider checking the fourth actual argument of the 'fwprintf' function. The pointer to string of wchar_t type symbols is expected. seh.cpp 292
- 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