News for hackers. Stuff that matters.
Re:How a 20 year old bug in GTA San Andreas surfaced in Wind... by Leherenn on Wednesday April 23, 2025 @03:35PM (#43775865)
My only issue with defensive codding is that often it doesn't play nice with code coverage requirements. I've been in situations where I would like to add defensive coding just in case, but then the PR doesn't pass the coverage checks. The best is when you can ensure via th compiler (e.g. via the type system) that a case is impossible, but C++ (in my case) isn't perfect for this.
Re:How a 20 year old bug in GTA San Andreas surfaced in Wind... by mezyt on Thursday April 24, 2025 @03:52AM (#43780222)
Code coverage tools allow to pragma the defensive code which will appear reasonable to most reviewers ?