Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #b
  • #bu
  • #bug
  • #bugs
RSS: #bugs_in_c

#bugs_in_c

  • #bugs_in_c/c++_projects
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    Barotrauma
    ▻https://hownot2code.com/2022/03/31/barotrauma

    BUG OF THE MONTH | Unnecessary actions V3107 Identical expression ‘power’ to the left and to the right of compound assignment. RelayComponent.cs 150 The programmer is trying to add MaxPower, power and the difference between currPowerConsumption and power. The expanded version of the expression will look as follows: There’s no need to subtract the power variable from itself. The simplified code will look like … Continue reading Barotrauma

    #Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #C# #coding #cpp #Csharp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/6cf7e97db3595534ba7691cdc074c2a5.png?w=1024

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    Unity
    ▻https://hownot2code.com/2022/04/26/unity-2

    BUG OF THE MONTH | Assignment to Variable without Use V3008 The ‘rect.y’ variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 370, 366. ShaderVariantCollectionInspector.cs 370 The analyzer reports that the same variable — rect.y — is assigned a value twice and the code does not use the variable between the assignments. If we … Continue reading Unity

    #Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #bugs #C# #coding #Csharp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/unity_technologies_logo.svg_.png?w=1024

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    Bitwarden
    ▻https://hownot2code.com/2022/05/25/bitwarden

    BUG OF THE MONTH | Erroneous postfix PVS-Studio warning: V3159 Modified value of the ‘retriedCount’ operand is not used after the postfix increment operation. FreshdeskController.cs 167 Look at the incrementation of the retriedCount variable. Weird — the postfix notation is used here. The current value of the variable is returned first, and only then this value is increased. Maybe … Continue reading Bitwarden

    #Bugs_in_C#_projects #C#_bugs_of_the_month #Bug_of_the_month #bugs #C# #coding #Csharp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/bitwarden_logo.svg_.png?w=1024

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    Ogre3D
    ▻https://hownot2code.com/2022/03/29/ogre3d

    BUG OF THE MONTH | Incorrect Calculation V1064 The ‘1’ operand of integer division is less than the ‘100000’ one. The result will always be zero. OgreAutoParamDataSource.cpp 1094 Here the dummy vector should store floating point numbers. In this case, the constructor receives 4 arguments of the float type. However, there are integer values to the left and right of … Continue reading Ogre3D

    #Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/1600px-ogre3d-logo.svg_.png?w=1024

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    Blend2D
    ▻https://hownot2code.com/2022/04/29/blend2d

    BUG OF THE MONTH | An always-false expression V547 Expression ‘h == 0’ is always false. jpegcodec.cpp 252 In this code fragment, the result of the blMemReadU16uBE function call is assigned to the h variable. Then if the h == 0 check is true, we exit from the function’s body. During initialization impl->delayedHeight, the h variable has non-zero value. Thus, impl->delayedHeight is false.

    #Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/blend2d-logo-mid.png?w=256

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 27/05/2022

    DuckStation
    ▻https://hownot2code.com/2022/05/27/duckstation

    BUG OF THE MONTH | Free of Pointer not at Start of Buffer V726 An attempt to free memory containing the ‘wbuf’ array by using the ‘free’ function. This is incorrect as ‘wbuf’ was created on stack. log.cpp 216 Here the analyzer detected code with an error. In this code fragment, we see an attempt to … Continue reading DuckStation

    #Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #Bug_of_the_month #bugs #coding #cpp #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2022/05/9b531edcbb1a4a81e667cd8acce6b8ab.png?w=1024

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 3/11/2021

    How to Use Mass Suppression in PVS-Studio for C#?
    ▻https://hownot2code.com/2021/11/03/how-to-use-mass-suppression-in-pvs-studio-for-c-2

    Have you just run the analyzer and now you have no idea what to do with all this abundance of warnings? 📜 Nothing to worry about – we made a special mechanism that can help you deal with them 💪🏻 In this #Video, you’ll learn about the inner workings of mass warnings suppression mechanism in … Continue reading How to Use Mass Suppression in PVS-Studio for C#?

    #Bugs_in_C#_projects #Development_in_C# #Tips_and_tricks #bugs #C# #coding #masssuppression #programming #static_code_analysis #tutorial
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 18/10/2021

    Unity projects analysis: the solution file has two projects named “UnityEngine.UI”
    ▻https://hownot2code.com/2021/10/18/unity-projects-analysis-the-solution-file-has-two-projects-named-unitye

    While PVS-Studio analyses a Unity project, one may stumble upon such an error: Error was encountered while trying to open solution file ‘…’: The solution file has two projects named “UnityEngine.UI”. This note discusses the reasons for this error and how to eliminate it. Reasons PVS-Studio uses some third-party libraries, including Roslyn and MSBuild to … Continue reading Unity projects analysis: the solution file has two projects named “UnityEngine.UI”

    #Bugs_in_C#_projects #Tips_and_tricks #bugs #C# #coding #Csharp #development #gamedev #programming #SharpDevelop
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2021/10/image1-2.png?w=524 https://hownot2code.files.wordpress.com/2021/10/image1-3.png?w=524 https://hownot2code.files.wordpress.com/2021/10/image2-2.png?w=550

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 30/09/2021

    CWE #top 25 2021. What is it, what is it for and how is it useful for static analysis?
    ▻https://hownot2code.com/2021/09/30/cwe-top-25-2021-what-is-it-what-is-it-for-and-how-is-it-useful-for-stat

    For the first time PVS-Studio provided support for the CWE classification in the 6.21 release. It took place on January 15, 2018. Years have passed since then and we would like to tell you about the improvements related to the support of this classification in the latest analyzer version. We position the PVS-Studio analyzer as … Continue reading CWE Top 25 2021. What is it, what is it for and how is it useful for static analysis?

    #Bugs_in_C#_projects #Tips_and_tricks #bugs #C# #coding #cpp #java #programming #static_code_analysis
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2021/09/image1-12.png?w=580 https://hownot2code.files.wordpress.com/2021/09/e1f521019e900fa7918cb9f1be94f37e.png?w=579

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 1/09/2021

    #peachpie
    ▻https://hownot2code.com/2021/09/01/peachpie

    data == null && throw NullReferenceException The V3080 warning: Possible null dereference. Consider inspecting ‘data’. PhpStream.cs 1382 The value of the data variable is checked in the loop. If the variable equals null and its Length property has a positive value, then the loop exit occurs. Clearly, it’s impossible. Moreover, we have an exception when accessing the Length variable that has the null value. Here, the access … Continue reading PeachPie

    #C#_bugs_of_the_month #bugs #Bugs_in_C#_projects #Csharp #opensource #programming #static_code_analysis #static_code_analyzer
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2021/09/image.png?w=460

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code via RSS CC BY 2/08/2021

    #BitTorrent
    https://hownot2code.com/2021/08/02/bittorrent

    Using memset to clear memory Warning V597 The compiler could delete the ‘memset’ function call, which is used to flush ‘ui’ object. The memset_s() function should be used to erase the private data. makemeta-ui.c:53 The most frequent mistake is to use the memset function to clear memory. In short, the compiler has every right to delete memset calls if … Continue reading BitTorrent

    #Bugs_in_C/C++_projects #C/C++_bugs_of_the_month #bugs #C++ #C++bugs #cpp #cppbugs #opensource #programming
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://dougbelshaw.com/blog/wp-content/uploads/2020/03/bittorrent-logo.png

    How not 2 code @hownot2code via RSS CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 19/04/2020

    Zero, one, two, Freddy’s coming for you
    ▻https://hownot2code.com/2020/04/03/zero-one-two-freddys-coming-for-you

    This post continues the series of articles, which can well be called “horrors for developers”. This time it will also touch upon a typical pattern of typos related to the usage of numbers 0, 1, 2. The language you’re writing in doesn’t really matter: it can be C, C++, C#, or #java. If you’re using … Continue reading Zero, one, two, Freddy’s coming for you

    #Tips_and_tricks #ADAPTIVE_Communication_Environment_ACE_ #Asterisk #audacity #Bugs_in_C#_projects #C# #C++ #C++bugs #CMake #Coin3D #Godot_Engine #ITK #Java_bugs #libreoffice #Open_CASCADE_Technology #OpenCOLLADA #OpenCV #PDFium #programming #Quake-III-Arena #ReactOS #Trans-Proteomic_Pipeline #Visualization_Toolkit_VTK_ #xnu_kernel
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2020/02/image1.png https://hownot2code.files.wordpress.com/2020/02/image2.png https://hownot2code.files.wordpress.com/2020/02/image3.png https://hownot2code.files.wordpress.com/2020/02/image4.png https://hownot2code.files.wordpress.com/2020/02/image5.png?w=300 https://hownot2code.files.wordpress.com/2020/02/image6.png https://hownot2code.files.wordpress.com/2020/02/image7.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 1/08/2019
    1
    @sandburg
    1

    How to shoot yourself in the foot in C and C++. #haiku OS Cookbook
    ▻https://hownot2code.com/2019/07/26/how-to-shoot-yourself-in-the-foot-in-c-and-c-haiku-os-cookbook

    This story goes back to 2015, when Haiku OS and PVS-Studio static analyzer developers decided to join forces and improve this OS code quality. At first it was more like an experiment, as there was no Linux analyzer at that time and the team had to work only with the compiled executable analyzer file. The … Continue reading How to shoot yourself in the foot in C and C++. Haiku OS Cookbook

    #Bugs_in_C/C++_projects #cpp #opensource
    ►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    https://hownot2code.files.wordpress.com/2019/07/artboard-1-copy-1.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire

Thèmes liés

  • #programming
  • #bugs
  • #coding
  • #bugs_in_c
  • #c
  • #_projects
  • #cpp
  • #bug_of_the_month
  • #csharp
  • #bugs_in_c/c++_projects
  • #tips_and_tricks
  • #_bugs_of_the_month
  • #c/c++_bugs_of_the_month
  • #static_code_analysis
  • #opensource
  • #c++
  • #c++bugs
  • #java