PVS-StudioWarnings

PVS-Studio warning V627 for nss

Nov 19th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #define SSL3_MASTER_SECRET_LENGTH 48
  2.  
  3. SECStatus
  4. ssl3_ServerHandleSessionTicketXtn(....)
  5. {
  6.   if (buffer_len < sizeof(SSL3_MASTER_SECRET_LENGTH))
  7.     goto no_ticket;
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in nss project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V627 Consider inspecting the expression. The argument of sizeof() is the macro which expands to a number. ssl3ext.c 1541
  14.  
  15. 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