Roslyn
▻https://hownot2code.com/2020/10/30/roslyn
V3156 The sixth argument of the ‘GenerateUniqueName’ method is passed as an argument to the ‘Concat’ method and is not expected to be null. Potential null value: null. AbstractSemanticFactsService.cs 24 We’ll be honest: when making this diagnostic, we didn’t really expect triggering warnings for simple null. After all, it is quite strange to pass null to a method … Continue reading Roslyn
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Clang 11
▻https://hownot2code.com/2020/10/30/clang-11
Modulo operation on 1 PVS-Studio diagnostic message: V1063 The modulo by 1 operation is meaningless. The result will always be zero. llvm-stress.cpp 631 The programmer is using a modulo operation to get a random value of either 0 or 1. But the value 1 seems to confuse developers andmake them write the classic anti-pattern in which the … Continue reading Clang 11
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
#job Opportunities for Skilled C++ Candidates
▻https://hownot2code.com/2020/10/13/job-opportunities-for-skilled-c-candidates
This content brought to you by Andrew Dominik from qualityguestpost C++ is an extension of C language. C++ #programming language is complex, but strongly preferred in today’s IT sector. You will come across some part of its codebase in generally every system or program. It is the first language developers interested in programming start with. … Continue reading Job Opportunities for Skilled C++ Candidates
#Tips_and_tricks #C++ #career #cpp #programming_language
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
QEMU
▻https://hownot2code.com/2020/09/30/qemu
Array overrun V557 Array overrun is possible. The ‘dwc2_glbreg_read’ function processes value ‘[0..63]’. Inspect the third argument. Check lines: 667, 1040. hcd-dwc2.c 667 Warning N4V557 Array overrun is possible. The ’dwc2_glbreg_read’ function processes value ’[0..63]’. Inspect the third argument. Check lines: 667, 1040. hcd-dwc2.c 667#define HSOTG_REG(x) (x) // <= 5....struct DWC2State ....#define DWC2_GLBREG_SIZE 0x70 uint32_t … Continue reading QEMU
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Running #Kubernetes on #VMware: Challenges and Solutions
▻https://hownot2code.com/2020/09/23/running-kubernetes-on-vmware-challenges-and-solutions
In August, 2019, VMware vSphere announced they are going Kubernetes-native. This means that integrated VMware and Kubernetes becomes a reality for all vSphere users. Despite all the benefits this integration promises, running Kubernetes on VMware is not exempt from challenges. This article presents an overview of running Kubernetes on VMware and the challenges it presents. … Continue reading Running Kubernetes on VMware: Challenges and Solutions
#Tips_and_tricks #programming
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
▻https://lh4.googleusercontent.com/s_ACS_qlAjU5QMLFo_1lTA301lT7Q3EW9HDnpFcRmM_TyjIsUAdcrWc24pln8
▻https://lh4.googleusercontent.com/0Gkj33tTW8Kku3Sqqo91VLBZRjxHQIrvY6QbmtKERn5i8EgfM1DTmpbf8Wxsw
RavenDB
▻https://hownot2code.com/2020/06/30/ravendb
Always true public override void VerifyCanExecuteCommand( ServerStore store, TransactionOperationContext context, bool isClusterAdmin ) using (context.OpenReadTransaction()) var read = store.Cluster.GetCertificateByThumbprint(context, Name); if (read == null) return; var definition = JsonDeserializationServer.CertificateDefinition(read); if ( definition.SecurityClearance != SecurityClearance.ClusterAdmin || // <= definition.SecurityClearance != SecurityClearance.ClusterNode // <= ) return; AssertClusterAdmin(isClusterAdmin); Analyzer warning: V3022 Expression is always … Continue reading (...)
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Ghidra
▻https://hownot2code.com/2020/06/30/ghidra
Always true & Unreachable code public void setValueAt(Object aValue, int row, int column) ... int index = indexOf(newName); if (index >= 0) // <= Window window = tool.getActiveWindow(); Msg.showInfo(getClass(), window, “Duplicate Name”, “Name already exists:” + newName); return; ExternalPath path = paths.get(row); // <= ... private int indexOf(String name) … Continue reading Ghidra
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Command & Conquer
▻https://hownot2code.com/2020/06/30/command-conquer
Array overrun V557 Array overrun is possible. The ‘QuantityB’ function processes value ‘[0..86]’. Inspect the first argument. Check lines: ‘HOUSE.H:928’, ‘CELL.CPP:2337’. HOUSE.H 928 typedef enum StructType : char STRUCT_NONE=-1, .... STRUCT_COUNT, // <= 87 STRUCT_FIRST=0 StructType; int BQuantity[STRUCT_COUNT-3]; int QuantityB(int index) return(BQuantity[index]); bool CellClass::Goodie_Check(FootClass * object) .... int bcount = 0; for( … Continue reading Command & Conquer
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Nethermind
▻https://hownot2code.com/2020/06/01/nethermind
Priority V3123 Perhaps the ‘??’ operator works in a different way than it was expected. Its priority is lower than priority of other operators in its left part. Nethermind.Trie TrieNode.cs 43 V3123 Perhaps the ‘??’ operator works in a different way than it was expected. Its priority is lower than priority of other operators in … Continue reading Nethermind
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Best Practices for Building Applications on Microsoft Azure
▻https://hownot2code.com/2020/05/20/best-practices-for-building-applications-on-microsoft-azure
Image Source The demand for cloud-native application development is increasing on a daily basis. Cloud-native apps can provide benefits that traditional apps can’t, including high availability, automatic resource provisioning, and auto-scaling. These applications also help organizations and developers maintain their competitive edge. In this article, you will learn best practices for cloud-native application development on … Continue reading Best Practices for Building Applications on Microsoft Azure
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
C++ Is Faster and Safer Than Rust: Benchmarked by Yandex
▻https://hownot2code.com/2020/05/14/c-is-faster-and-safer-than-rust-benchmarked-by-yandex
Author: Roman Proskuryakov Spoiler: C++ is not faster or slower – that’s not the point, actually. This article continues our good tradition of busting myths about the Rust language shared by some big-name Russian companies. The previous article of this series is titled “Go is faster than Rust: benchmarked by Mail.Ru (RU)“. Not so long … Continue reading C++ Is Faster and Safer Than Rust: Benchmarked by Yandex
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
TensorFlow.NET
▻https://hownot2code.com/2020/04/30/tensorflow-net
Unreliable waiting? V3054 Potentially unsafe double-checked locking. Use volatile variable(s) or synchronization primitives to avoid this. Item.cs 1624 V3032 Waiting on this expression is unreliable, as compiler may optimize some of the variables. Use volatile variable(s) or synchronization primitives to avoid this. WhileContext.cs 212 private (LoopVar<TItem>, Tensor[]) _BuildLoop<TItem>( .... ) where .... .... // … Continue reading TensorFlow.NET
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Zephyr
▻https://hownot2code.com/2020/04/30/zephyr
Unreachable code V547 Expression ‘disp’ is always true. lv_disp.c 148 uint32_t lv_disp_get_inactive_time(const lv_disp_t disp) if(!disp) disp = lv_disp_get_default(); if(!disp) LV_LOG_WARN("lv_disp_get_inactive_time: no display registered"); return 0; if(disp) return lv_tick_elaps(disp->last_activity_time); lv_disp_t d; uint32_t t = UINT32_MAX; d = lv_disp_get_next(NULL); while(d) t = LV_MATH_MIN(t, lv_tick_elaps(d->last_activity_time)); d = lv_disp_get_next(d); return t; … Continue reading Zephyr
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Hunting Down and Fixing Memory Leaks in Java
▻https://hownot2code.com/2020/03/20/hunting-down-and-fixing-memory-leaks-in-java
Author: Bradley Kofi In the last article, we covered the most basic aspects of what memory leaks are, what causes them and how to eliminate them from your program. As a preamble, memory leaks happen when the garbage collector (GC) is unable to clear unreferenced objects from working memory. Considering how much of its popularity … Continue reading Hunting Down and Fixing Memory Leaks in Java
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
Beta testing of the #PVS-Studio C# analyzer on #linux and #macOS
▻https://hownot2code.com/2020/03/23/beta-testing-of-the-pvs-studio-c-analyzer-on-linux-and-macos
More and more users of the PVS-Studio C# analyzer get interested in the possibility to utilize it for checking C# code on Linux and macOS. Today the PVS-Studio team has some good news. Since the end of the last year, it’s been actively working on porting the C# analyzer to the #.NET_Core platform, as … Continue reading Beta testing of the PVS-Studio C# analyzer on Linux and macOS
#Tips_and_tricks #C#
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
A 6 Step Field Guide for Building Machine Learning Projects
▻https://hownot2code.com/2020/03/27/a-6-step-field-guide-for-building-machine-learning-projects
Author: Daniel Bourke Machine learning is broad. The media makes it sound like magic. Reading this article will change that. It will give you an overview of the most common types of problems machine learning can be used for. And at the same time give you a framework to approach your future machine learning proof … Continue reading A 6 Step Field Guide for Building Machine Learning Projects
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
OpenToonz
▻https://hownot2code.com/2020/03/31/opentoonz
This code looks strange V521 Such expressions using the ‘,’ operator are dangerous. Make sure the expression ‘m_to, m_from = it->first.getNumber()’ is correct. flipbook.cpp 509 class LoadImagesPopup final : public FileBrowserPopup .... int m_from, m_to, ....; .... void LoadImagesPopup::onFilePathClicked(....) TLevel::Iterator it; .... it = level->begin(); m_to, m_from = it->first.getNumber(); for (; it … Continue reading OpenToonz
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G
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
Static Analysis in Theory and in Practice
▻https://hownot2code.com/2020/01/31/static-analysis-in-theory-and-in-practice
There are many ways that can assist in improvement the program’s quality. In this article, we invite you to consider one of them – static code analysis. Briefly about static code analysis As you probably know, static analyzers allow you to check the code without running the program itself. Recently, popularity of static analysis in … Continue reading Static Analysis in Theory and in Practice
►https://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G