Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
Articles: Andrey Karpov

Posts: Andrey Karpov

Jan 23 2012
Are the types size_t and uintptr_t equivalent?
Andrey Karpov
The question if these types are equivalent and which of them and when should be used is discussed very much. But in practice you may consider them equivalent and use them as you like.
...
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 wish...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
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 system?
...
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 be...
...
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 that...
...
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 and...
...
Nov 25 2011
PVS-Studio: analyzing Doom 3 code
Andrey Karpov
The id Software company possesses a PVS-Studio license. However, we decided to test the source codes of Doom 3 that have been recently laid out on the Internet. The result is the following: we...
...
Nov 07 2011
Myths about static analysis. The fifth myth - a small test program is enough to evaluate a tool
Andrey Karpov
While communicating with people on forums, I noticed there are a few lasting misconceptions concerning the static analysis methodology. I decided to write a series of brief articles where I want to...
...
Nov 04 2011
Myths about static analysis. The fourth myth - programmers want to add their own rules into a static analyzer
Andrey Karpov
While communicating with people on forums, I noticed there are a few lasting misconceptions concerning the static analysis methodology. I decided to write a series of brief articles where I want to...
...
Nov 03 2011
Myths about static analysis. The third myth - dynamic analysis is better than static analysis
Andrey Karpov
While communicating with people on forums, I noticed there are a few lasting misconceptions concerning the static analysis methodology. I decided to write a series of brief articles where I want to...
...
View more Pagination arrow previous
Showing: - of 654