PVS-StudioWarnings

PVS-Studio warning V525 for Scilab

Nov 19th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. int C2F(run)(void)
  2. {
  3.   ....
  4.   static int *Lpt = C2F(iop).lpt - 1;
  5.   ....
  6.   Lpt[1] = Lin[1 + k];
  7.   Lpt[2] = Lin[2 + k];
  8.   Lpt[3] = Lin[3 + k];
  9.   Lpt[4] = Lin[4 + k];
  10.   Lct[4] = Lin[6 + k ];
  11.   Lpt[6] = k;
  12.   ....
  13. }
  14.  
  15. This suspicious code was found in Scilab project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V525 The code containing the collection of similar blocks. Check items '1', '2', '3', '4', '4' in lines 1005, 1006, 1007, 1008, 1009. run.c 1005
  18.  
  19. 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