PVS-StudioWarnings

PVS-Studio warning V525 for Fennec Media Project

Nov 21st, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. void* tag_write_setframe(char *tmem,
  2.   const char *tid, const string dstr)
  3. {
  4.   ...
  5.   if(lset)
  6.   {
  7.     fhead[11] = '\0';
  8.     fhead[12] = '\0';
  9.     fhead[13] = '\0';
  10.     fhead[13] = '\0';
  11.   }
  12.   ...
  13. }
  14.  
  15. This suspicious code was found in Fennec Media Project project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V525 The code containing the collection of similar blocks. Check items '11', '12', '13', '13' in lines 716, 717, 718, 719. id3 editor.c 716
  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