PVS-StudioWarnings

PVS-Studio warning V617 for OpenSSL

Nov 20th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #define EVP_PKT_SIGN 0x0010
  2.  
  3. int ssl3_get_cert_verify(SSL *s)
  4. {
  5.   int type=0, i, j;
  6.   ....
  7.   if ((peer != NULL) && (type | EVP_PKT_SIGN))
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in OpenSSL project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V617 Consider inspecting the condition. The '0x0010' argument of the '|' bitwise operation contains a non-zero value. s3_srvr.c 2343
  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