Better HN
topnewbestaskshowjobs
Log inSign up

PVS-Studio

154 karma · joined May 22, 2015 (11y ago) · 110 submissions

Submissions

1.

PVS-Studio team invites you to share examples of errors related to vibe coding(pvs-studio.com ↗)

2 points · by PVS-Studio · 1y ago · discuss

comment 5y ago · link · parent

So I want to add an explanation. As I see from the comments, many of you thought that the PVS-Studio analyzer warns about a function's unused argument. That's not quite so. Or, to be precise, this is so, but the analyzer processes this case smarter than most linters or compilers. Continue: https://karpov2007.medium.com/a-few-more-words-about-the-pvs...

comment 5y ago · link · parent

If a diagnostic issues warnings to unused arguments - it's a weak diagnostic. PVS-Studio acts differently. Take a look at my clarifying comment below or above (not sure where it would be when you read it).

comment 5y ago · link · parent

So I want to add an explanation. As I see from the comments, many of you thought that the PVS-Studio analyzer warns about a function's unused argument. That's not quite so. Or, to be precise, this is so, but the analyzer processes this case smarter than most linters or compilers.

It's a bad idea to program an analyzer so that it just issues a warning to unused arguments. Such analyzer would produce many false positives, which is why many developers don't look at (or disable) these warnings in their compilers/analyzers.

The PVS-Studio analyzer implements sort of empirical "magic". PVS-Studio relies on the fact that there are arguments of the same type and some of them are not used, while the other ones are used several times. At the same time, there are a number of exceptions to the rule. For example, the diagnostic is not triggered if the number of unused arguments exceeds two.

All this allows the V751 diagnostic to issue few false positives, which makes the tool surpass its competitors. To be exact, when developing PVS-Studio, we do not implement rules if we cannot make them better than those of the compilers - https://pvs-studio.com/en/blog/posts/0802/ . Thanks to the diagnostic I described above, one can find interesting errors - https://pvs-studio.com/en/blog/examples/v751/ .

P.S. The PVS-Studio analyzer also provides a "stupid" version of this diagnostic - V2537 https://pvs-studio.com/en/docs/warnings/v2537/ . It was developed to check code against MISRA C and MISRA C++ standards. But the case above was special and by default this diagnostic was disabled - same as the other ones related to MISRA.

5.

Performant String Parsing in C++(thecodepad.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

6.

PVS-Studio: macOS Kernel Recheck(habr.com ↗)

2 points · by PVS-Studio · 5y ago · discuss

7.

What Is Yield and How Does It Work in C#?(viva64.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

8.

C++ Stories(cppstories.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

9.

Date Processing Attracts Bugs or 77 Defects in Qt 6(viva64.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

10.

C#: Should We Initialize an Out Parameter Before a Method Returns?(viva64.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

11.

Is Coding Knowledge Required for BugBounty/Cybersecurity? – Tools? – Tamil Hacks(youtube.com ↗)

1 points · by PVS-Studio · 5y ago · discuss

12.

How to Get Nice Error Reports Using Sarif(viva64.com ↗)

3 points · by PVS-Studio · 5y ago · discuss

13.

Covid-19 CovidSim Model and Uninitialized Variable(habr.com ↗)

2 points · by PVS-Studio · 5y ago · discuss

14.

Static Analysis in C++(youtu.be ↗)

1 points · by PVS-Studio · 6y ago · discuss

15.

C++Cast: Rosetta(cppcast.com ↗)

1 points · by PVS-Studio · 6y ago · discuss

16.

C++Cast: Intro to Modules(cppcast.com ↗)

1 points · by PVS-Studio · 6y ago · discuss

17.

Typos related to the usage of numbers 0, 1, 2(viva64.com ↗)

2 points · by PVS-Studio · 6y ago · discuss

18.

Yuri Minaev – Don’t take on C++ programmers support(youtu.be ↗)

2 points · by PVS-Studio · 6y ago · discuss

19.

Checking Huawei Cloud with the PVS-Studio Static Code Analyzer(habr.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

20.

C++Cast: CRTP and Israel Joining the C++ ISO(cppcast.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

21.

On Request of Embedded Developers: Detecting Errors in Amazon FreeRTOS(viva64.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

22.

C++Cast: Unicode for C++23(cppcast.com ↗)

2 points · by PVS-Studio · 7y ago · discuss

23.

C++Cast: Becoming Involved with the C++ Committee(cppcast.com ↗)

2 points · by PVS-Studio · 7y ago · discuss

24.

Analyzing the Code of Root, Scientific Data Analysis Framework(viva64.com ↗)

3 points · by PVS-Studio · 7y ago · discuss

25.

PVS-Studio for Java(viva64.com ↗)

3 points · by PVS-Studio · 7y ago · discuss

26.

PVS-Studio 7.00 now provides static analyzer for Java(viva64.com ↗)

3 points · by PVS-Studio · 7y ago · discuss

27.

Free PVS-Studio SAST for open source C/C++/C#(viva64.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

28.

Discussion on a free PVS-Studio license for projects posted on GitHub(medium.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

29.

PVS-Studio: Support of MISRA C and MISRA C++ Coding Standards(viva64.com ↗)

1 points · by PVS-Studio · 7y ago · discuss

30.

The Fastest Reports in the Wild West – And a Handful of Bugs(viva64.com ↗)

1 points · by PVS-Studio · 8y ago · discuss

1234