Advertisement
PVS-StudioWarnings

PVS-Studio warning V614 for Chromium

Nov 21st, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. void SavePackage::GetSaveInfo() {
  2.   ....
  3.   bool skip_dir_check;
  4.   ....
  5.   if (....) {
  6.     ....->GetSaveDir(...., &skip_dir_check);
  7.   }
  8.   ....
  9.   BrowserThread::PostTask(BrowserThread::FILE,
  10.                           FROM_HERE,
  11.                           base::Bind(..., skip_dir_check, ...));
  12. }
  13.  
  14. This suspicious code was found in Chromium project by PVS-Studio static code analyzer.
  15. Warning message is:
  16. V614 Potentially uninitialized variable 'skip_dir_check' used. Consider checking the fifth actual argument of the 'Bind' function. save_package.cc 1326
  17.  
  18. 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