Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CUT_MimeEncode::Encode7bit(....)
- {
- ...
- char buf[1000];
- ...
- for ( t=0; t<bytesRead; t++ ) {
- if (buf[t]==0 || buf[t]>127) {
- retval = UTE_ENCODING_INVALID_CHAR;
- break;
- }
- ...
- }
- This suspicious code was found in UltimateTCPIP project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression 'buf[t] > 127' is always false. The value range of signed char type: [-128, 127]. UTImap4 utmime.cpp 320
- 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