Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
Posts

Posts

Jan 23 2012
Is there a way to make the type size_t 32-bit in a 64-bit program?
Andrey Karpov
While porting code from a 32-bit system to a 64-bit one, you may want to make the types size_t/ptrdiff_t 32-bit again to reduce the number of errors and warnings generated by the compiler. This...
...
Jan 23 2012
Why is the value of the ProgramFiles environment variable replaced with that of ProgramFiles(x86)?
Andrey Karpov
Why is the value of the %ProgramFiles% environment variable replaced with the value of %ProgramFiles(x86)% when accessing it from a 32-bit program launched in a 64-bit operating...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
Jan 23 2012
How can I know if the DWORD_PTR type is defined using ifdef?
Andrey Karpov
Memsize-types DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR and ULONG_PTR are intended to support 64-bit code and can safely store a pointer regardless of the platform capacity. But these types might...
...
Jan 17 2012
Overwriting memory - why?
Andrey Karpov
We decided to publish this article in our knowledge base to show programmers how easily private data can get out of the program handling them. There is the V597 diagnostic rule in PVS-Studio...
...
Dec 23 2011
Static Code Analysis
John Carmack
The most important thing I have done as a programmer in recent years is to aggressively pursue static code analysis. Even more valuable than the hundreds of serious bugs I have prevented with it...
...
Dec 15 2011
Tips on speeding up the PVS-Studio analyzer
Evgenii Ryzhkov
Any static code analyzer works slower than a compiler. It is determined by the fact that the compiler must work very quickly, though to the detriment of analysis depth. Static analyzers have to...
...
Dec 15 2011
How to make fewer errors at the stage of code writing. Part N4
Andrey Karpov
This is the fourth post in which I want to share with you some useful observations on error patterns and the ways of fighting them. This time I will touch upon the subject of handling rare...
...
Dec 14 2011
On the good of automated filtering of identical messages
Evgenii Ryzhkov
From the very beginning duplicates of messages in our analyzer PVS-Studio have been eliminated. For example, if a diagnostic message is generated for a code in an .h-file included into...
...
Dec 13 2011
"Please check this project too..."
Evgenii Ryzhkov
We believe that the best way of promoting our static code analyzer PVS-Studio is using it to check famous open source projects (like Chromium, Clang, WinMerge and many others) and writing articles...
...
Dec 08 2011
Windows Error Reporting dialog
Paul Eremeev
As with any other native Windows program, there exists a possibility of an unhandled exception being raised during the operation of PVS-Studio analyzer (the PVS-Studio.exe process in...
...
View more Pagination arrow previous
Showing: - of 1574