It's funny because many of these are the exact possible errors you expect when someone is swimming in a large code block doing lots of copy and paste. Large blocks of code are very hard to test thoroughly, so I imagine the testing was mostly looking to see if things look right followed by play-testing.
I have used the Rust compiler, which will catch all memory errors, data races, and null pointer exceptions and buffer overflows at compile time as a matter if course. then you can add cargo fuzz if you like.
https://www.viva64.com/en/b/0417/
https://www.viva64.com/en/b/0495/
https://www.viva64.com/en/b/0574/
I'm not endorsing pvs studio nor am I saying it's bad. Try out some tools and see what works best for you.