![]() ![]() Variables pc1 and pc2 have been assigned values not in all cases, as not all set of behaviors were taken into account. V614 Potentially uninitialized pointer 'pc2' used.V614 Potentially uninitialized pointer 'pc1' used.PVS-Studio warning: V607 Ownerless expression 'i >= 0'. Moreover, this is not the only error of this kind: In this case, the error is in the syntax of the operator for: positions of the 2-nd and 3-rd subexpressions are messed up. INTERP.C 355 temp = (((ulong) _view_position.gX)>16) // get high 16 bits ![]() PVS-Studio warning: V560 A part of conditional expression is always true: 0xffff0000. However, it is worth learning from other people's mistakes, especially since most of the shortcomings are quite typical and repeat in many projects, and besides that, they can lead to serious consequences. In this article, we gathered some bugs from source code of games, access to which is open to all wishing on GitHub. The most interesting bugs found using PVS-Studio in the field of video games are available in our recent article " Static Analysis in Video Game Development: Top 10 Software Bugs". ![]() Game projects also do not avoid this fate. The error, which made $370 000 000 blow up alone is enough to demonstrate it. There are plenty of examples when even highly reliable systems have various shortcomings. Sure, it is difficult to avoid errors in such a large project. Therefore, when I had to choose which project to check using PVS-Studio, I could not pass up such a titan of the gaming industry. This may have been done to draw attention to promising remake of the original first part, which seems to go through bad times. It also inspired many of game design solutions of Metal Gear Solid, Resident Evil and even Half-Life. The code of that very cyberpunk-shooter, which has affected further development of the whole direction of action adventure and thriller games and became the forerunner of such game series as Bioshock. Recently the source code of the legendary game System Shock has been released. "How can you challenge a perfect immortal machine?" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |