Errors detected in Open Source projects by the PVS-Studio developers through static analysis
We regularly check various open-source projects with PVS-Studio and send analysis results to developers and usually describe them in our posts as well. Besides, we add them into our bug database. This database is posted below on this page.
The bugs are grouped according to the number of the diagnostic rule that is used to detect them. The right column contains a link to the corresponding error samples.
Error CodeError DescriptionProject ListV501There are identical sub-expressions to the left and to the right of the ‘foo’ operator.
.NET CoreCLR, 7-Zip, ADAPTIVE Communication Environment (ACE), Apache HTTP Server, AssaultCube Reloaded, Asterisk, Audacity, Blender, Boost (C++ libraries), ChakraCore, Chromium, Clang, …
View examples of errors for these projects
V502Perhaps the ‘?:’ operator works in a different way than it was expected. The ‘?:’ operator has a lower priority than the ‘foo’ operator.
Apache Xerces Project, Chromium, Computational Network Toolkit, CryEngine V, FCEUX, FreeBSD Kernel, GCC, Grid Control Re-dux, Haiku Operation System, IPP Samples, Miranda NG, MongoDB, …
View examples of errors for these projects
V503This is a nonsensical comparison: pointer < 0.
.NET CoreCLR, Asterisk, Chromium, FreeBSD Kernel, GINV, Haiku Operation System, IPP Samples, OGDF, OpenToonz, Scilab, Xpdf.
View examples of errors for these projects
V504It is highly probable that the semicolon ‘;’ is missing after ‘return’ keyword.
Inkscape.
View examples of errors for these projects
V505The ‘alloca’ function is used inside the loop. This can quickly overflow stack.
Crystal Space 3D SDK, DeSmuME, Multi-threaded Dynamic Queue, Pixie, Synergy.
View examples of errors for these projects
V506Pointer to local variable ‘X’ is stored outside the scope of this variable. Such a pointer will become invalid.
Miranda NG, PHP:Hypertext Preprocessor, Unreal Engine 4, WinSCP.
View examples of errors for these projects
V507Pointer to local array ‘X’ is stored outside the scope of this array. Such a pointer will become invalid.
GCC, GNU Octave, Inkscape, MAME, Miranda NG, MySQL, Pixie, Scilab, Source Engine SDK, TortoiseSVN.
View examples of errors for these projects
V509The ‘throw’ operator inside the destructor should be placed within the try..catch block. Raising exception inside the destructor is illegal.
7-Zip, Chromium, Data Distribution Service, FlightGear, Geant4 software, LibreOffice, NetXMS, OGRE, Protocol Buffers, Source Engine SDK, TortoiseGit, TortoiseSVN, …
View examples of errors for these projects
V510The ‘Foo’ function is not expected to receive class-type variable as ’N’ actual argument.
Apple II emulator, C++ Embedded Web Server, Chromium, Computational Network Toolkit, CryEngine V, Quake-III-Arena, SMTP Client, Scilab, Telegram, TortoiseSVN, Unreal Engine 4, Wild Magic 5, …
View examples of errors for these projects
V511The sizeof() operator returns size of the pointer, and not of the array, in given expression.
Chromium, Intel AMT SDK, MySQL, Oracle VM Virtual Box, ReactOS, Samba, Shareaza, Source Engine SDK, Wolfenstein 3D.
View examples of errors for these projects
V512A call of the ‘Foo’ function will lead to a buffer overflow or underflow.
.NET CoreCLR, ADAPTIVE Communication Environment (ACE), Apache HTTP Server, Chromium, DeSmuME, Doom 3, Energy Checker SDK, FCEUX, Far Manager, Fennec Media, FlightGear, FreeBSD Kernel, …
View examples of errors for these projects
V513Use _beginthreadex/_endthreadex functions instead of CreateThread/ExitThread functions.
Multi Theft Auto, PostgreSQL Database Management System, SeqAn, Snes9x, Source Engine SDK, Tesseract, Trans-Proteomic Pipeline.
View examples of errors for these projects
V514Dividing sizeof a pointer by another value. There is a probability of logical error presence.
Miranda IM, Miranda NG, Notepad++, OpenCOLLADA, OpenMS, ReactOS, Scilab.
View examples of errors for these projects
V516Consider inspecting an odd expression. Non-null function pointer is compared to null.
Audacity, Micro-Manager.
View examples of errors for these projects
V517The use of ‘if (A) {…} else if (A) {…}’ pattern was detected. There is a probability of logical error presence.
.NET CoreCLR, 7-Zip, Asterisk, ChakraCore, Chromium, CryEngine 3 SDK, CryEngine V, Doom 3, EIB Suite, FFmpeg, FreeCAD, FreeSWITCH, …
View examples of errors for these projects
V518The ‘malloc’ function allocates strange amount of memory calculated by ‘strlen(expr)’. Perhaps the correct variant is strlen(expr) + 1.
FCEUX.
View examples of errors for these projects
V519The ‘x’ variable is assigned values twice successively. Perhaps this is a mistake.
Apple II emulator, Blender, CMake, Casablanca, Clang, CryEngine 3 SDK, CryEngine V, Crystal Space 3D SDK, D programming language, Data Distribution Service, Doom 3, Doxygen, …
View examples of errors for these projects
V520The comma operator ‘,’ in array index expression.
G3D Content Pak.
View examples of errors for these projects
V521Such expressions using the ‘,’ operator are dangerous. Make sure the expression is correct.
CryEngine 3 SDK, G3D Content Pak, Grassroots DICOM library (GDCM), IPP Samples, Lugaru, OpenSSL, Oracle VM Virtual Box, Quake-III-Arena, ReactOS, Trans-Proteomic Pipeline, Unreal Engine 4, Visualization Toolkit (VTK), …
View examples of errors for these projects
V522Dereferencing of the null pointer might take place.
.NET CoreCLR, Blender, ChakraCore, Chromium, Clang, D programming language, Data Distribution Service, FreeBSD Kernel, GeoLib, Godot Engine, LibreOffice, Miranda NG, …
View examples of errors for these projects
V523The ‘then’ statement is equivalent to the ‘else’ statement.
.NET CoreCLR, ADAPTIVE Communication Environment (ACE), Blender, Clang, CryEngine 3 SDK, CryEngine V, Doxygen, FlightGear, FreeBSD Kernel, FreeCAD, FreeSWITCH, GCC, …
View examples of errors for these projects
V524It is odd that the body of ‘Foo_1’ function is fully equivalent to the body of ‘Foo_2’ function.
Blender, Chromium, Clang, Geant4 software, MAME, Nmap Security Scanner, Open X-Ray Engine, OpenCV, OpenMW, SeqAn, Spring Engine, The GTK+ Project, …
View examples of errors for these projects
V525The code containing the collection of similar blocks. Check items X, Y, Z, … in lines N1, N2, N3, …
Fennec Media, Miranda IM, MySQL, Notepad++, Scilab, SeqAn, SlimDX, Source Engine SDK, Trans-Proteomic Pipeline, Win32++.
View examples of errors for these projects
V526The ‘strcmp’ function returns 0 if corresponding strings are equal. Consider examining the condition for mistakes.
Micro-Manager, Network Security Services (NSS), PostgreSQL Database Management System, wxWidgets.
View examples of errors for these projects
V527It is odd that the ‘zero’ value is assigned to pointer. Probably meant: *ptr = zero.
Apache HTTP Server, Haiku Operation System, PNG library, ReactOS, Scilab, Trans-Proteomic Pipeline.
View examples of errors for these projects
V528It is odd that pointer is compared with the ‘zero’ value. Probably meant: *ptr != zero.
Apache HTTP Server, CxImage, Doom 3, Fennec Media, GCC, Miranda IM, Miranda NG, Mozilla Firefox, Notepad++, OpenCV, ReOpenLDAP, Scilab, …
View examples of errors for these projects
V529Odd semicolon ‘;’ after ‘if/for/while’ operator.
CamStudio, CryEngine V, Fennec Media, Haiku Operation System, MAME, Multi-threaded Dynamic Queue, Oracle VM Virtual Box, QuickThread, ReactOS, VirtualDub, Windows 8 Driver Samples, Xpdf, …
View examples of errors for these projects
V530The return value of function ‘Foo’ is required to be utilized.
Battle for Wesnoth, Casablanca, Chromium, Computational Network Toolkit, Doxygen, EchoVNC, Firebird, FreeSWITCH, IPP Samples, ITK, Intel AMT SDK, Micro-Manager, …
View examples of errors for these projects
V531It is odd that a sizeof() operator is multiplied by sizeof().
CrashRpt library, NetDefender Firewall, Oracle VM Virtual Box, ReactOS, XUIFramework.
View examples of errors for these projects
V532Consider inspecting the statement of ‘*pointer++’ pattern. Probably meant: ‘(*pointer)++’.
Apache HTTP Server, DeSmuME, FCEUX, Godot Engine, IPP Samples, Miranda NG, Open X-Ray Engine, OpenSSL, eMule Plus.
View examples of errors for these projects
V533It is likely that a wrong variable is being incremented inside the ‘for’ operator. Consider reviewing ‘X’.
Doom 3, Godot Engine, Open X-Ray Engine, Simple DirectMedia Layer, Unreal Engine 4.
View examples of errors for these projects
V534It is likely that a wrong variable is being compared inside the ‘for’ operator. Consider reviewing ‘X’.
Coin3D, Oracle VM Virtual Box, Source Engine SDK.
View examples of errors for these projects
V535The variable ‘X’ is being used for this loop and for the outer loop.
Blender, CryEngine V, Doom 3, FreeBSD Kernel, Haiku Operation System, IPP Samples, Lugaru, OGRE, The GTK+ Project, Visualization Toolkit (VTK), Wine Is Not an Emulator.
View examples of errors for these projects
V536Be advised that the utilized constant value is represented by an octal form.
Chromium, Linux Kernel 3.18.1 Stable, Micro-Manager, Miranda IM, PostgreSQL Database Management System, TortoiseGit, eLynx Image Processing SDK and Lab.
View examples of errors for these projects
V537Consider reviewing the correctness of ‘X’ item’s usage.
Blender, Expat, IPP Samples, Miranda IM, Quake-III-Arena, ReactOS, Source Engine SDK, Trinity Core.
View examples of errors for these projects
V539Consider inspecting iterators which are being passed as arguments to function ‘Foo’.
CryEngine V.
View examples of errors for these projects
V540Member ‘x’ should point to string terminated by two 0 characters.
Chromium, Fennec Media, WinSCP.
View examples of errors for these projects
V541It is dangerous to print the string into itself.
CAMEL, FreeBSD Kernel, Mozilla Firefox, PCSX2, Scilab, Serious Engine 1 v.1.10, TinyCAD, UCSniff.
View examples of errors for these projects
V542Consider inspecting an odd type cast: ‘Type1’ to ‘ Type2’.
Miranda IM.
View examples of errors for these projects
V543It is odd that value ‘X’ is assigned to the variable ‘Y’ of HRESULT type.
Oracle VM Virtual Box, Unreal Engine 4, WinMerge.
View examples of errors for these projects
V545Such conditional expression of ‘if’ operator is incorrect for the HRESULT type value ‘Foo’. The SUCCEEDED or FAILED macro should be used instead.
LibreOffice, Qt, VirtualDub.
View examples of errors for these projects
V546Member of a class is initialized by itself: ‘Foo(Foo)’.
Boost (C++ libraries), CryEngine V, OpenToonz.
View examples of errors for these projects
V547Expression is always true/false.
.NET CoreCLR, 7-Zip, ADAPTIVE Communication Environment (ACE), Apache HTTP Server, Apple II emulator, Asterisk, BCmenu, Boost (C++ libraries), CLucene, CPython, CamStudio, ChakraCore, …
View examples of errors for these projects
V548Consider reviewing type casting. TYPE X[][] in not equivalent to TYPE **X.
Haiku Operation System.
View examples of errors for these projects
V549The ‘first’ argument of ‘Foo’ function is equal to the ‘second’ argument.
Chromium, CryEngine 3 SDK, Micro-Manager, Miranda NG, Open Metronome, ReactOS, The GTK+ Project.
View examples of errors for these projects
V550An odd precise comparison. It’s probably better to use a comparison with defined precision: fabs(A — B) < Epsilon or fabs(A — B) > Epsilon.
CAMEL, ffdshow.
View examples of errors for these projects
V552A bool type variable is being incremented. Perhaps another variable should be incremented instead.
7-Zip.
View examples of errors for these projects
V554Incorrect use of smart pointer.
Boost (C++ libraries), Casablanca, Chromium, Haiku Operation System, Nana, OpenToonz.
View examples of errors for these projects
V555The expression of the ‘A — B > 0’ kind will work as ‘A != B’.
FreeSWITCH, K Desktop Environment, OpenJPEG, OpenSSL, PHP:Hypertext Preprocessor, Scilab, Trans-Proteomic Pipeline, Wine Is Not an Emulator.
View examples of errors for these projects
V556The values of different enum types are compared.
Blender, Casablanca, Clang, Linux Kernel 3.18.1 Stable, OpenToonz, Source Engine SDK, TortoiseGit, Unreal Engine 4, Windows 8 Driver Samples, XUIFramework.
View examples of errors for these projects
V557Array overrun is possible.
Blender, CAMEL, CMake, ChakraCore, Chromium, Coin3D, Doom 3, Dynamic Universal Music Bibliotheque, Energy Checker SDK, FFmpeg, Firebird, FlightGear, …
View examples of errors for these projects
V558Function returns the pointer/reference to temporary local object.
Geant4 software, SeqAn, VirtualDub.
View examples of errors for these projects
V559Suspicious assignment inside the condition expression of ‘if/while/for’ operator.
Data Distribution Service, Intel AMT SDK, Miranda IM, Miranda NG, Scilab, Serious Engine 1 v.1.10, The GTK+ Project.
View examples of errors for these projects
V560A part of conditional expression is always true/false.
Apache HTTP Server, Apple II emulator, Blender, CxImage, DeSmuME, Doxygen, Firebird, Fireflies, Gamer_Z eXtreme Party, LibRaw, Lugaru, Miranda IM, …
View examples of errors for these projects
V561It’s probably better to assign value to ‘foo’ variable than to declare it anew.
FCEUX, Firebird, FlightGear, Godot Engine, OpenJDK, Oracle VM Virtual Box, Telegram, Unreal Engine 4, Vscap.
View examples of errors for these projects
V562It’s odd to compare a bool type value with a value of N.
Blender, Haiku Operation System, ReactOS, Spvolren, Windows 8 Driver Samples.
View examples of errors for these projects
V563It is possible that this ‘else’ branch must apply to the previous ‘if’ statement.
BCmenu, Cfront, Open X-Ray Engine, PeerBlock, Squirrel, Trans-Proteomic Pipeline.
View examples of errors for these projects
V564The ‘&’ or ‘|’ operator is applied to bool type value. You’ve probably forgotten to include parentheses or intended to use the ‘&&’ or ‘||’ operator.
Battle for Wesnoth, Blender, Chromium, DOSBox, Doom 3, FCEUX, FFmpeg, K Desktop Environment, MySQL, Network Security Services (NSS), OpenMW, Oracle VM Virtual Box, …
View examples of errors for these projects
V565An empty exception handler. Silent suppression of exceptions can hide the presence of bugs in source code during testing.
G3D Content Pak.
View examples of errors for these projects
V567Undefined behavior. The variable is modified while being used twice between sequence points.
Apple II emulator, AssaultCube Reloaded, Chromium, CryEngine 3 SDK, CryEngine V, Doom 3, Fennec Media, FreeSWITCH, Gamer_Z eXtreme Party, Godot Engine, IPP Samples, Miranda IM, …
View examples of errors for these projects
V568It’s odd that the argument of sizeof() operator is the expression.
Apache HTTP Server, Asterisk, CxImage, Energy Checker SDK, FCEUX, Haiku Operation System, Miranda IM, OpenCV, ReactOS, Wolfenstein 3D.
View examples of errors for these projects
V569Truncation of constant value.
FreeBSD Kernel.
View examples of errors for these projects
V570The variable is assigned to itself.
ChakraCore, Chromium, Coin3D, CryEngine 3 SDK, CryEngine V, FreeBSD Kernel, FreeCAD, FreeSWITCH, GNU Octave, Linux Kernel 3.18.1 Stable, Open X-Ray Engine, OpenCV, …
View examples of errors for these projects
V571Recurring check. This condition was already verified in previous line.
.NET CoreCLR, 7-Zip, Asterisk, Blender, CryEngine 3 SDK, Energy Checker SDK, FreeBSD Kernel, IPP Samples, Inkscape, Micro-Manager, Miranda NG, Multi Theft Auto, …
View examples of errors for these projects
V572It is odd that the object which was created using ‘new’ operator is immediately cast to another type.
Cocos2d-x, wxWidgets.
View examples of errors for these projects
V573Uninitialized variable ‘Foo’ was used. The variable was used to initialize itself.
Firebird, Multi Theft Auto, Word for Windows 1.1a.
View examples of errors for these projects
V575Function receives an odd argument.
CryEngine V, Doom 3, Fennec Media, Firebird, G3D Content Pak, Haiku Operation System, Miranda IM, Miranda NG, Mozilla Firefox, Multi Theft Auto, Open X-Ray Engine, ReactOS, …
View examples of errors for these projects
V576Incorrect format. Consider checking the N actual argument of the ‘Foo’ function.
Apache Xerces Project, Apple II emulator, Cairo, CamStudio, Cfront, Chromium, Cocos2d-x, Coin3D, CryEngine 3 SDK, DeSmuME, Dolphin Smalltalk 7, Doom 3, …
View examples of errors for these projects
V578An odd bitwise operation detected. Consider verifying it.
NetXMS.
View examples of errors for these projects
V579The ‘Foo’ function receives the pointer and its size as arguments. It is possibly a mistake. Inspect the N argument.
.NET CoreCLR, ADAPTIVE Communication Environment (ACE), APR, Apache HTTP Server, Blender, CamStudio, Chromium, CryEngine V, Dolphin Emulator, Doom 3, Far Manager, Firebird, …
View examples of errors for these projects
V581The conditional expressions of the ‘if’ operators situated alongside each other are identical.
Asterisk, Chromium, Firebird, FreeSWITCH, Inkscape, LibreOffice, MongoDB, Open X-Ray Engine, Unreal Engine 4, WebM.
View examples of errors for these projects
V583The ‘?:’ operator, regardless of its conditional expression, always returns one and the same value.
Cocos2d-x, CryEngine V, FreeBSD Kernel, Haiku Operation System, MAME, Miranda NG, Oracle VM Virtual Box, ReOpenLDAP, Scilab, Spring Engine, Telegram.
View examples of errors for these projects
V584The same value is present on both sides of the operator. The expression is incorrect or it can be simplified.
Asterisk, Far Manager, Ruby MRI.
View examples of errors for these projects
V586The ‘Foo’ function is called twice for deallocation of the same resource.
Blender, Miranda NG, OpenMW, VNL.
View examples of errors for these projects
V587An odd sequence of assignments of this kind: A = B; B = A;.
Git, LibreOffice, Mozilla Firefox, Windows 8 Driver Samples.
View examples of errors for these projects
V588The expression of the ‘A =+ B’ kind is utilized. Consider reviewing it, as it is possible that ‘A += B’ was meant.
Libxml2, Trans-Proteomic Pipeline.
View examples of errors for these projects
V590Consider inspecting this expression. The expression is excessive or contains a misprint.
.NET CoreCLR, ChakraCore, CryEngine V, FCEUX, FreeBSD Kernel, FreeSWITCH, GCC, GNU C Library, Godot Engine, Haiku Operation System, ICU, LibreOffice, …
View examples of errors for these projects
V591Non-void function should return a value.
Haiku Operation System, Open X-Ray Engine, Quake-III-Arena, SETI@home, Unreal Engine 4.
View examples of errors for these projects
V592The expression was enclosed by parentheses twice: ((expression)). One pair of parentheses is unnecessary or misprint is present.
Spring Engine, wxWidgets.
View examples of errors for these projects
V593Consider reviewing the expression of the ‘A = B == C’ kind. The expression is calculated as following: ‘A = (B == C)’.
Blender, FFmpeg, FreeBSD Kernel, FreeSWITCH, Haiku Operation System, K Desktop Environment, LibRaw, Linux Kernel 3.18.1 Stable, Mozilla Firefox, Opus, PuTTY, Qt, …
View examples of errors for these projects
V594The pointer steps out of array’s bounds.
ReactOS.
View examples of errors for these projects
V595The pointer was utilized before it was verified against nullptr.
.NET CoreCLR, 7-Zip, ADAPTIVE Communication Environment (ACE), ANGLE, Apache Xerces Project, Apple II emulator, Asterisk, Blender, CPython, Cfront, ChakraCore, Chromium, …
View examples of errors for these projects
V596The object was created but it is not being used. The ‘throw’ keyword could be missing.
Computational Network Toolkit, FlightGear, FreeCAD, Geant4 software, Multi Theft Auto, OpenMS, OpenMW, OpenToonz.
View examples of errors for these projects
V597The compiler could delete the ‘memset’ function call, which is used to flush ‘Foo’ buffer. The RtlSecureZeroMemory() function should be used to erase the private data.
APR, Apache HTTP Server, Asterisk, CamStudio, Crypto++, Dolphin Emulator, FreeSWITCH, GNU C Library, Haiku Operation System, LibreOffice, Linux Kernel 3.18.1 Stable, Miranda NG, …
View examples of errors for these projects
V598The ‘memset/memcpy’ function is used to nullify/copy the fields of ‘Foo’ class. Virtual table pointer will be damaged by this.
.NET CoreCLR, Coin3D, IPP Samples, Miranda NG, SlimDX.
View examples of errors for these projects
V599The virtual destructor is not present, although the ‘Foo’ class contains virtual functions.
ANGLE, Computational Network Toolkit, FreeCAD, GINV, Miranda NG, Multi Theft Auto, OpenToonz, Source Engine SDK, Synergy, TortoiseGit, Trans-Proteomic Pipeline, Unreal Engine 4, …
View examples of errors for these projects
V600Consider inspecting the condition. The ‘Foo’ pointer is always not equal to NULL.
Firebird, FreeSWITCH, ITK, Multi Theft Auto, Notepad++, OpenSSL.
View examples of errors for these projects
V601An odd implicit type casting.
Doxygen, Firebird, IPP Samples, Micro-Manager, WebPagetest.
View examples of errors for these projects
V603The object was created but it is not being used. If you wish to call constructor, ‘this->Foo::Foo(….)’ should be used.
ChakraCore, CryEngine V, Google-Breakpad, LibreOffice, Open X-Ray Engine, OpenCOLLADA, Trans-Proteomic Pipeline, eMule Plus.
View examples of errors for these projects
V604It is odd that the number of iterations in the loop equals to the size of the pointer.
Windows 8 Driver Samples.
View examples of errors for these projects
V605Consider verifying the expression. An unsigned value is compared to the number -NN.
FreeSWITCH, PHP:Hypertext Preprocessor, The GTK+ Project, VirtualDub.
View examples of errors for these projects
V606Ownerless token ‘Foo’.
Oracle VM Virtual Box, RunAsAdmin Explorer Shim, Windows 8 Driver Samples.
View examples of errors for these projects
V607Ownerless expression ‘Foo’.
Boost (C++ libraries), CryEngine 3 SDK, Eigen, Godot Engine, IPP Samples, Miranda NG, Serious Engine 1 v.1.10, TortoiseSVN, Trans-Proteomic Pipeline, Unreal Engine 4, Windows 8 Driver Samples.
View examples of errors for these projects
V609Divide or mod by zero.
Inkscape, Mozilla Thunderbird, VNL.
View examples of errors for these projects
V610Undefined behavior. Check the shift operator.
.NET CoreCLR, Apple II emulator, Blender, ChakraCore, Chromium, Clang, CryEngine V, DeSmuME, FAAC, FFmpeg, Firebird, FlightGear, …
View examples of errors for these projects
V611The memory allocation and deallocation methods are incompatible.
Apache Xerces Project, CxImage, Dolphin Smalltalk 7, LibreOffice, Miranda IM, Miranda NG, Mozilla Firefox, Mozilla Thunderbird, Multi Theft Auto, Newton Game Dynamics, OpenCOLLADA, OpenCV, …
View examples of errors for these projects
V612An unconditional ‘break/continue/return/goto’ within a loop.
Bitcoin, Casablanca, Chromium, Clang, CryEngine 3 SDK, D programming language, Data Distribution Service, Firebird, FreeSWITCH, Geant4 software, Inkscape, K Desktop Environment, …
View examples of errors for these projects
V614Uninitialized variable ‘Foo’ used.
APR, Apache HTTP Server, CPython, Chromium, Doxygen, Embedded SSL Library, FFmpeg, Firebird, GNU C Library, Geant4 software, Godot Engine, IPP Samples, …
View examples of errors for these projects
V615An odd explicit conversion from ‘float *’ type to ‘double *’ type.
OpenJDK.
View examples of errors for these projects
V616The ‘Foo’ named constant with the value of 0 is used in the bitwise operation.
LibreOffice, Mozilla Firefox, Mozilla Thunderbird, ReactOS, Unreal Engine 4.
View examples of errors for these projects
V617Consider inspecting the condition. An argument of the ‘|’ bitwise operation always contains a non-zero value.
ABackup, Multi Theft Auto, OpenSSL, ResizableLib, WebRTC, Word for Windows 1.1a, ffdshow.
View examples of errors for these projects
V618It’s dangerous to call the ‘Foo’ function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf(\”%s\”, str);
Apple II emulator, CryEngine 3 SDK, LibreOffice, Miranda NG, Source Engine SDK, TortoiseSVN, WinSCP.
View examples of errors for these projects
V620It’s unusual that the expression of sizeof(T)*N kind is being summed with the pointer to T type.
Apache Xerces Project, Miranda NG, Snes9x.
View examples of errors for these projects
V621Consider inspecting the ‘for’ operator. It’s possible that the loop will be executed incorrectly or won’t be executed at all.
FreeBSD Kernel, FreeSWITCH, Geant4 software, Haiku Operation System, Mozilla Thunderbird, PuTTY, SETI@home, Scilab, Unreal Engine 4.
View examples of errors for these projects
V622Consider inspecting the ‘switch’ statement. It’s possible that the first ‘case’ operator is missing.
CryEngine V, K Desktop Environment, Miranda NG.
View examples of errors for these projects
V624The constant NN is being utilized. The resulting value could be inaccurate. Consider using the M_NN constant from <math.h>.
Geant4 software, Inkscape, OpenMS, ffdshow.
View examples of errors for these projects
V625Consider inspecting the ‘for’ operator. Initial and final values of the iterator are the same.
LibreOffice, Oracle VM Virtual Box, Synergy.
View examples of errors for these projects
V626Consider checking for misprints. It’s possible that ‘,’ should be replaced by ‘;’.
LibreOffice, Oracle VM Virtual Box.
View examples of errors for these projects
V627Consider inspecting the expression. The argument of sizeof() is the macro which expands to a number.
Data Distribution Service, Network Security Services (NSS), Samba, WebRTC.
View examples of errors for these projects
V628It’s possible that the line was commented out improperly, thus altering the program’s operation logics.
Inkscape, Spring Engine, Trans-Proteomic Pipeline.
View examples of errors for these projects
V629Consider inspecting the expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type.
Bitcoin, Clang, SMHasher, SeqAn, Snes9x, Tesseract, The JUCE Library, Unreal Engine 4, Xpdf.
View examples of errors for these projects
V630The ‘malloc’ function is used to allocate memory for an array of objects which are classes containing constructors/destructors.
Cocos2d-x, Computational Network Toolkit, CryEngine V, Haiku Operation System.
View examples of errors for these projects
V631Consider inspecting the ‘Foo’ function call. Defining an absolute path to the file or directory is considered a poor style.
NetXMS, VirtualDub, ffdshow.
View examples of errors for these projects
V634The priority of the ‘+’ operation is higher than that of the ‘<<’ operation. It’s possible that parentheses should be used in the expression.
CryEngine V, Haiku Operation System.
View examples of errors for these projects
V635Consider inspecting the expression. The length should probably be multiplied by the sizeof(wchar_t).
Miranda NG, WinMerge.
View examples of errors for these projects
V636The expression was implicitly cast from integer type to real type. Consider utilizing an explicit type cast to avoid overflow or loss of a fractional part.
Cocos2d-x, Coin3D, CxImage, Data Distribution Service, FFmpeg, FlightGear, Geant4 software, Micro-Manager, Miranda NG, Open X-Ray Engine, OpenMS, Qt, …
View examples of errors for these projects
V637Two opposite conditions were encountered. The second condition is always false.
.NET CoreCLR, Blender, Chromium, Firebird, K Desktop Environment, OpenCV, ReactOS, TinyCAD, TortoiseGit, Unreal Engine 4, VirtualDub.
View examples of errors for these projects
V638A terminal null is present inside a string. The ‘\\0xNN’ characters were encountered. Probably meant: ‘\\xNN’.
Linux Kernel 3.18.1 Stable, Oracle VM Virtual Box.
View examples of errors for these projects
V639Consider inspecting the expression for function call. It is possible that one of the closing ‘)’ brackets was positioned incorrectly.
CryEngine 3 SDK, Eigen, LibreOffice.
View examples of errors for these projects
V640The code’s operational logic does not correspond with its formatting.
Chromium, CryEngine V, EA WebKit, FFmpeg, Geant4 software, Haiku Operation System, Miranda NG, Oracle VM Virtual Box, ReactOS, Spring Engine, Windows 8 Driver Samples, XUIFramework, …
View examples of errors for these projects
V641The size of the allocated memory buffer is not a multiple of the element size.
Miranda NG.
View examples of errors for these projects
V642Saving the function result inside the ‘byte’ type variable is inappropriate. The significant bits could be lost breaking the program’s logic.
Firebird, Linux Kernel 3.18.1 Stable, OpenToonz, ReactOS, Xpdf.
View examples of errors for these projects
V643Unusual pointer arithmetic. The value of the ‘char’ type is being added to the string pointer.
OpenToonz, Spring Engine.
View examples of errors for these projects
V645The function call could lead to the buffer overflow. The bounds should not contain the size of the buffer, but a number of characters it can hold.
ICU, Miranda NG, Multi Theft Auto, ReactOS.
View examples of errors for these projects
V646Consider inspecting the application’s logic. It’s possible that ‘else’ keyword is missing.
FreeBSD Kernel, FreeSWITCH, Geant4 software, Haiku Operation System, Inkscape, K Desktop Environment, Mozilla Thunderbird, Serious Engine 1 v.1.10, Simple DirectMedia Layer, Spring Engine, Telegram, VirtualDub, …
View examples of errors for these projects
V648Priority of the ‘&&’ operation is higher than that of the ‘||’ operation.
Oracle VM Virtual Box, Wolfenstein 3D.
View examples of errors for these projects
V649There are two ‘if’ statements with identical conditional expressions. The first ‘if’ statement contains function return. This means that the second ‘if’ statement is senseless.
Blender, Coin3D, Micro-Manager, Miranda IM, RunAsAdmin Explorer Shim, Wolfenstein 3D.
View examples of errors for these projects
V650Type casting operation is utilized 2 times in succession. Next, the ‘+’ operation is executed. Probably meant: (T1)((T2)a + b).
Wine Is Not an Emulator.
View examples of errors for these projects
V652The operation is executed 3 or more times in succession.
FreeSWITCH.
View examples of errors for these projects
V653A suspicious string consisting of two parts is used for array initialization. It is possible that a comma is missing.
Asterisk.
View examples of errors for these projects
V654The condition of loop is always true/false.
Apache HTTP Server, Git, K Desktop Environment, Linux Kernel 3.18.1 Stable, Miranda NG, Oracle VM Virtual Box, Unreal Engine 4, WebRTC.
View examples of errors for these projects
V655The strings were concatenated but are not utilized. Consider inspecting the expression.
FreeCAD, K Desktop Environment, OpenToonz, Scilab.
View examples of errors for these projects
V656Variables are initialized through the call to the same function. It’s probably an error or un-optimized code.
Doom 3, LibreOffice, Qt, ReactOS.
View examples of errors for these projects
V662Consider inspecting the loop expression. Different containers are utilized for setting up initial and final values of the iterator.
Rhino (JavaScript engine).
View examples of errors for these projects
V663Infinite loop is possible. The ‘cin.eof()’ condition is insufficient to break from the loop. Consider adding the ‘cin.fail()’ function call to the conditional expression.
GNU Octave, Grassroots DICOM library (GDCM), ITK, OpenMW, POCO C++ Libraries, SETI@home.
View examples of errors for these projects
V665Possibly, the usage of ‘#pragma warning(default: X)’ is incorrect in this context. The ‘#pragma warning(push/pop)’ should be used instead.
Chromium, Crash Server Library, Data Distribution Service, Dolphin Smalltalk 7, FreeSWITCH, Multi Theft Auto, Newton Game Dynamics, OpenToonz, PostgreSQL Database Management System, SlimDX, Source Engine SDK, TortoiseGit, …
View examples of errors for these projects
V666Consider inspecting NN argument of the function ‘Foo’. It is possible that the value does not correspond with the length of a string which was passed with the YY argument.
Geant4 software, ITK, Inkscape, LibreOffice, OpenJDK, OpenSSL, Scilab, Source Engine SDK, Spring Engine, Trans-Proteomic Pipeline.
View examples of errors for these projects
V668There is no sense in testing the pointer against null, as the memory was allocated using the ‘new’ operator. The exception will be generated in the case of memory allocation error.
.NET CoreCLR, 7-Zip, ADAPTIVE Communication Environment (ACE), ANGLE, Appleseed, Chromium, Cocos2d-x, CryEngine 3 SDK, Doxygen, Firebird, FlightGear, GNU Octave, …
View examples of errors for these projects
V669The argument is a non-constant reference. The analyzer is unable to determine the position at which this argument is being modified. It is possible that the function contains an error.
CryEngine 3 SDK, Micro-Manager, WinMerge.
View examples of errors for these projects
V670An uninitialized class member is used to initialize another member. Remember that members are initialized in the order of their declarations inside a class.
.NET CoreCLR, Appleseed, Mozilla Thunderbird, Tesseract, Unreal Engine 4.
View examples of errors for these projects
V671It is possible that the ‘swap’ function interchanges a variable with itself.
Haiku Operation System.
View examples of errors for these projects
V672There is probably no need in creating a new variable here. One of the function’s arguments possesses the same name and this argument is a reference.
Haiku Operation System.
View examples of errors for these projects
V673More than N bits are required to store the value, but the expression evaluates to the T type which can only hold K bits.
.NET CoreCLR.
View examples of errors for these projects
V674The expression contains a suspicious mix of integer and real types.
FlightGear, Geant4 software, Godot Engine, LibreOffice, Open X-Ray Engine, Source Engine SDK, Unreal Engine 4.
View examples of errors for these projects
V676It is incorrect to compare the variable of BOOL type with TRUE.
Apple II emulator, CryEngine 3 SDK, Firebird, VirtualDub.
View examples of errors for these projects
V677Custom declaration of a standard type. The declaration from system header files should be used instead.
Miranda NG, SlimDX.
View examples of errors for these projects
V678An object is used as an argument to its own method. Consider checking the first actual argument of the ‘Foo’ function.
Mozilla Thunderbird, Shareaza.
View examples of errors for these projects
V681The language standard does not define an order in which the ‘Foo’ functions will be called during evaluation of arguments.
Wine Is Not an Emulator.
View examples of errors for these projects
V684A value of variable is not modified. Consider inspecting the expression. It is possible that ‘1’ should be present instead of ‘0’.
V8 JavaScript Engine.
View examples of errors for these projects
V686A pattern was detected: A || (A && …). The expression is excessive or contains a logical error.
Blender.
View examples of errors for these projects
V688The ‘foo’ local variable possesses the same name as one of the class members, which can result in a confusion.
Computational Network Toolkit, CryEngine V.
View examples of errors for these projects
V690The class implements a copy constructor/operator=, but lacks the operator=/copy constructor.
Bitcoin, Casablanca, OpenJDK.
View examples of errors for these projects
V692An inappropriate attempt to append a null character to a string. To determine the length of a string by ‘strlen’ function correctly, a string ending with a null terminator should be used in the first place.
Haiku Operation System, Linux Kernel 3.18.1 Stable, Wine Is Not an Emulator.
View examples of errors for these projects
V694The condition (ptr — const_value) is only false if the value of a pointer equals a magic constant.
FreeSWITCH, Miranda NG.
View examples of errors for these projects
V695Range intersections are possible within conditional expressions.
CryEngine V, Linux Kernel 3.18.1 Stable, The GTK+ Project.
View examples of errors for these projects
V696The ‘continue’ operator will terminate ‘do { … } while (FALSE)’ loop because the condition is always false.
Cocos2d-x, Haiku Operation System, Linux Kernel 3.18.1 Stable.
View examples of errors for these projects
V698strcmp()-like functions can return not only the values -1, 0 and 1, but any values.
.NET CoreCLR.
View examples of errors for these projects
V700Consider inspecting the ‘T foo = foo = x;’ expression. It is odd that variable is initialized through itself.
.NET CoreCLR, Apple II emulator, Unreal Engine 4.
View examples of errors for these projects
V701realloc() possible leak: when realloc() fails in allocating memory, original pointer is lost. Consider assigning realloc() to a temporary pointer.
Dolphin Smalltalk 7, Doxygen, Firebird, FreeSWITCH, Git, K Desktop Environment, LibreOffice, ReOpenLDAP, Ruby MRI, Spring Engine.
View examples of errors for these projects
V704'this == 0' comparison should be avoided — this comparison is always false on newer compilers.
.NET CoreCLR, Inkscape, Miranda NG, Serious Engine 1 v.1.10.
View examples of errors for these projects
V705It is possible that ‘else’ block was forgotten or commented out, thus altering the program’s operation logics.
FreeBSD Kernel, K Desktop Environment, Linux Kernel 3.18.1 Stable, Miranda NG.
View examples of errors for these projects
V706Suspicious division: sizeof(X) / Value. Size of every element in X array does not equal to divisor.
Haiku Operation System.
View examples of errors for these projects
V707Giving short names to global variables is considered to be bad practice.
Cfront.
View examples of errors for these projects
V709Suspicious comparison found: ‘a == b == c’. Remember that ‘a == b == c’ is not equal to ‘a == b && b == c’.
Unreal Engine 4.
View examples of errors for these projects
V711It is dangerous to create a local variable within a loop with a same name as a variable controlling this loop.
FreeBSD Kernel, Haiku Operation System, Telegram, Wine Is Not an Emulator.
View examples of errors for these projects
V712Be advised that compiler may delete this cycle or make it infinity. Use volatile variable(s) or synchronization primitives to avoid this.
FCEUX, FreeSWITCH, G3D Content Pak, GINV, IPP Samples, MPC-HC, Open X-Ray Engine, ReactOS, Shareaza, eMule Plus.
View examples of errors for these projects
V713The pointer was utilized in the logical expression before it was verified against nullptr in the same logical expression.
ChakraCore, CryEngine V, EchoVNC, Firebird, FreeBSD Kernel, FreeSWITCH, GeoShell, Haiku Operation System, Linux Kernel 3.18.1 Stable, Miranda IM, Miranda NG, Mozilla Thunderbird, …
View examples of errors for these projects
V716Suspicious type conversion: HRESULT -> BOOL (BOOL -> HRESULT).
Dolphin Smalltalk 7, LibreOffice, Wine Is Not an Emulator.
View examples of errors for these projects
V718The ‘Foo’ function should not be called from ‘DllMain’ function.
LibreOffice, Open X-Ray Engine.
View examples of errors for these projects
V719The switch statement does not cover all values of the enum.
Appleseed, Firebird.
View examples of errors for these projects
V721The VARIANT_BOOL type is utilized incorrectly. The true value (VARIANT_TRUE) is defined as -1.
MAME.
View examples of errors for these projects
V724Converting integers or pointers to BOOL can lead to a loss of high-order bits. Non-zero value can become ‘FALSE’.
Ruby MRI.
View examples of errors for these projects
V726An attempt to free memory containing the ‘int A[10]’ array by using the ‘free(A)’ function.
CamStudio, Shareaza.
View examples of errors for these projects
V728An excessive check can be simplified. The ‘||’ operator is surrounded by opposite expressions ‘x’ and ‘!x’.
Blender, CPython, Firebird, PHP:Hypertext Preprocessor, The GTK+ Project.
View examples of errors for these projects
V729Function body contains the ‘X’ label that is not used by any ‘goto’ statements.
FreeBSD Kernel.
View examples of errors for these projects
V730Not all members of a class are initialized inside the constructor.
Miranda IM.
View examples of errors for these projects
V732Unary minus operator does not modify a bool type value. Consider using the ‘!’ operator.
Miranda IM.
View examples of errors for these projects
V733It is possible that macro expansion resulted in incorrect evaluation order.
FreeBSD Kernel.
View examples of errors for these projects
V734An excessive expression. Examine the substrings \”abc\” and \”abcd\”.
CryEngine V.
View examples of errors for these projects
V737It is possible that ‘,’ comma is missing at the end of the string.
Inkscape.
View examples of errors for these projects
V739EOF should not be compared with a value of the ‘char’ type. Consider using the ‘int’ type.
Computational Network Toolkit.
View examples of errors for these projects
V743The memory areas must not overlap. Use ‘memmove’ function.
Stickies.
View examples of errors for these projects
V745A ‘wchar_t *’ type string is incorrectly converted to ‘BSTR’ type string.
Oracle VM Virtual Box.
View examples of errors for these projects
V746Type slicing. An exception should be caught by reference rather than by value.
Open X-Ray Engine, OpenToonz, Oracle VM Virtual Box.
View examples of errors for these projects
V763Parameter is always rewritten in function body before being used.
Inkscape, ReOpenLDAP.
View examples of errors for these projects
V3001There are identical sub-expressions to the left and to the right of the ‘foo’ operator.
Accord.Net, IronPython and IronRuby, Microsoft Code Contracts, MonoDevelop, Samples by the Infragistics Company, SharpDevelop, Space Engineers, Umbraco, Xamarin.Forms, Xenko.
View examples of errors for these projects
V3002The switch statement does not cover all values of the enum.
Microsoft Code Contracts, SharpDevelop.
View examples of errors for these projects
V3003The use of ‘if (A) {…} else if (A) {…}’ pattern was detected. There is a probability of logical error presence.
Microsoft Code Contracts, Old NASA World Wind (C#), SharpDevelop, WPF samples by Microsoft, Xamarin.Forms.
View examples of errors for these projects
V3004The ‘then’ statement is equivalent to the ‘else’ statement.
.NET Compiler Platform (“Roslyn”), .NET Core Libraries (CoreFX), Microsoft Code Contracts, SharpDevelop, Sony ATF, Space Engineers, Umbraco.
View examples of errors for these projects
V3005The ‘x’ variable is assigned to itself.
.NET Compiler Platform (“Roslyn”), IronPython and IronRuby, MonoDevelop, Old NASA World Wind (C#), SharpDevelop, Sony ATF, Umbraco, WPF samples by Microsoft, Xenko.
View examples of errors for these projects
V3006The object was created but it is not being used. The ‘throw’ keyword could be missing.
Unity3D.
View examples of errors for these projects
V3008The ‘x’ variable is assigned values twice successively. Perhaps this is a mistake.
.NET Compiler Platform (“Roslyn”), .NET Core Libraries (CoreFX), Microsoft Code Contracts, Old NASA World Wind (C#), Samples by the Infragistics Company, SharpDevelop, Sony ATF, WPF samples by Microsoft.
View examples of errors for these projects
V3009It’s odd that the method always returns one and the same value.
Microsoft Code Contracts, Umbraco, Xamarin.Forms.
View examples of errors for these projects
V3010The return value of function ‘Foo’ is required to be utilized.
Old NASA World Wind (C#), SharpDevelop, Space Engineers, Umbraco.
View examples of errors for these projects
V3012The ‘?:’ operator, regardless of its conditional expression, always returns one and the same value.
.NET Compiler Platform (“Roslyn”), IronPython and IronRuby, MonoDevelop.
View examples of errors for these projects
V3013It is odd that the body of ‘Foo_1’ function is fully equivalent to the body of ‘Foo_2’ function.
.NET Compiler Platform (“Roslyn”), FlashDevelop, IronPython and IronRuby, Samples by the Infragistics Company.
View examples of errors for these projects
V3014It is likely that a wrong variable is being incremented inside the ‘for’ operator.
.NET Core Libraries (CoreFX), Microsoft Code Contracts.
View examples of errors for these projects
V3015It is likely that a wrong variable is being compared inside the ‘for’ operator.
Accord.Net.
View examples of errors for these projects
V3019It is possible that an incorrect variable is compared with null after type conversion using ‘as’ keyword.
.NET Compiler Platform (“Roslyn”), .NET Core Libraries (CoreFX), FlashDevelop, IronPython and IronRuby, Microsoft Code Contracts, MonoDevelop, Old NASA World Wind (C#), SharpDevelop, Sony ATF, Space Engineers.
View examples of errors for these projects
V3020An unconditional ‘break/continue/return/goto’ within a loop.
.NET Core Libraries (CoreFX), FlashDevelop, Space Engineers.
View examples of errors for these projects
V3021There are two ‘if’ statements with identical conditional expressions. The first ‘if’ statement contains method return. This means that the second ‘if’ statement is senseless.
.NET Compiler Platform (“Roslyn”), Accord.Net, IronPython and IronRuby, MonoDevelop, Old NASA World Wind (C#), Unity3D.
View examples of errors for these projects
V3022Expression is always true/false.
.NET Compiler Platform (“Roslyn”), .NET Core Libraries (CoreFX), Accord.Net, FlashDevelop, IronPython and IronRuby, Microsoft Code Contracts, Old NASA World Wind (C#), Sony ATF, Space Engineers, Unity3D, WPF samples by Microsoft, Xamarin.Forms, …
View examples of errors for these projects
V3023Consider inspecting this expression. The expression is excessive or contains a misprint.
.NET Compiler Platform (“Roslyn”), IronPython and IronRuby, MonoDevelop, SharpDevelop, Sony ATF, Xenko.
View examples of errors for these projects
V3024An odd precise comparison. Consider using a comparison with defined precision: Math.Abs(A — B) < Epsilon or Math.Abs(A — B) > Epsilon.
IronPython and IronRuby.
View examples of errors for these projects
V3025Incorrect format. Consider checking the N format items of the ‘Foo’ function.
.NET Compiler Platform (“Roslyn”), IronPython and IronRuby, Microsoft Code Contracts, MonoDevelop, SharpDevelop, Unity3D, Xenko.
View examples of errors for these projects
V3027The variable was utilized in the logical expression before it was verified against null in the same logical expression.
.NET Compiler Platform (“Roslyn”), .NET Core Libraries (CoreFX), IronPython and IronRuby, MonoDevelop, Space Engineers.
View examples of errors for these projects
V3028Consider inspecting the ‘for’ operator. Initial and final values of the iterator are the same.
Space Engineers.
View examples of errors for these projects
V3029The conditional expressions of the ‘if’ operators situated alongside each other are identical.
.NET Compiler Platform (“Roslyn”), Samples by the Infragistics Company.
View examples of errors for these projects
V3030Recurring check. This condition was already verified in previous line.
.NET Core Libraries (CoreFX), IronPython and IronRuby, Microsoft Code Contracts, SharpDevelop.
View examples of errors for these projects
V3031An excessive check can be simplified. The ‘||’ operator is surrounded by opposite expressions ‘x’ and ‘!x’.
FlashDevelop, SharpDevelop, Xamarin.Forms.
View examples of errors for these projects
V3032Waiting on this expression is unreliable, as compiler may optimize some of the variables. Use volatile variable(s) or synchronization primitives to avoid this.
IronPython and IronRuby, Unity3D, Xenko.
View examples of errors for these projects
V3033It is possible that this ‘else’ branch must apply to the previous ‘if’ statement.
Old NASA World Wind (C#).
View examples of errors for these projects
V3035Consider inspecting the expression. Probably ‘+=’ should be used here.
Lucene.Net.
View examples of errors for these projects
V3037An odd sequence of assignments of this kind: A = B; B = A;
Accord.Net, Old NASA World Wind (C#).
View examples of errors for these projects
V3038The ‘first’ argument of ‘Foo’ function is equal to the ‘second’ argument.
SharpDevelop, Xamarin.Forms.
View examples of errors for these projects
V3041The expression was implicitly cast from integer type to real type. Consider utilizing an explicit type cast to avoid the loss of a fractional part.
Accord.Net, Sony ATF, Xenko.
View examples of errors for these projects
V3042Possible NullReferenceException. The ‘?.’ and ‘.’ operators are used for accessing members of the same object.
Xamarin.Forms.
View examples of errors for these projects
V3043The code’s operational logic does not correspond with its formatting. The statement is indented to the right, but it is always executed. It is possible that curly brackets are missing.
Sony ATF.
View examples of errors for these projects
V3045WPF: the names of the property registered for DependencyProperty, and of the property used to access it, do not correspond with each other.
Samples by the Infragistics Company, WPF samples by Microsoft.
View examples of errors for these projects
V3046WPF: the type registered for DependencyProperty does not correspond with the type of the property used to access it.
Samples by the Infragistics Company, Xenko.
View examples of errors for these projects
V3051An excessive type cast or check. The object is already of the same type.
Old NASA World Wind (C#), Xamarin.Forms.
View examples of errors for these projects
V3052The original exception object was swallowed. Stack of original exception could be lost.
FlashDevelop, Xamarin.Forms.
View examples of errors for these projects
V3056Consider reviewing the correctness of ‘X’ item’s usage.
FlashDevelop.
View examples of errors for these projects
V3057Function receives an odd argument.
Unity3D.
View examples of errors for these projects
V3061Parameter is always rewritten in method body before being used.
Accord.Net, Old NASA World Wind (C#), Xenko.
View examples of errors for these projects
V3062An object is used as an argument to its own method. Consider checking the first actual argument of the method.
Accord.Net.
View examples of errors for these projects
V3063A part of conditional expression is always true/false if it is evaluated.
Accord.Net, Old NASA World Wind (C#), Unity3D, Xamarin.Forms.
View examples of errors for these projects
V3064Division or mod division by zero.
Accord.Net.
View examples of errors for these projects
V3065Parameter is not utilized inside method’s body.
Old NASA World Wind (C#), Xenko.
View examples of errors for these projects
V3066Possible incorrect order of arguments passed to ‘Foo’ method.
FlashDevelop.
View examples of errors for these projects
V3076Comparison with float.NaN or double.NaN.
Old NASA World Wind (C#).
View examples of errors for these projects
V3080Possible null dereference.
Accord.Net, Old NASA World Wind (C#), Unity3D.
View examples of errors for these projects
V3083Unsafe invocation of event, NullReferenceException is possible. Consider assigning event to a local variable before invoking it.
Accord.Net, Old NASA World Wind (C#), Unity3D.
View examples of errors for these projects
V3087Type of variable enumerated in ‘foreach’ is not guaranteed to be castable to the type of collection’s elements.
FlashDevelop.
View examples of errors for these projects
V3090Unsafe locking on an object.
Old NASA World Wind (C#).
View examples of errors for these projects
V3093The operator evaluates both operands. Perhaps a short-circuit operator should be used instead.
Accord.Net, NUnit, Old NASA World Wind (C#).
View examples of errors for these projects
V3095The object was used before it was verified against null.
FlashDevelop, Old NASA World Wind (C#), Unity3D, WPF samples by Microsoft.
View examples of errors for these projects
V3097Possible exception: type marked by [Serializable] contains non-serializable members not marked by [NonSerialized].
Accord.Net.
View examples of errors for these projects
V3102Suspicious access to element by a constant index inside a loop.
Accord.Net.