3 ms·
If you have a method that wipes your entire production database, and have a function pointer that is only ever set to point to that function, and you call it ..
by yorwba 9y ago
If you have a method that wipes your entire production database, and have a function pointer that is only ever set to point to that function, and you call it ... then what made you think it wouldn't wipe the production database? It's the only thing it could possibly do.
There are optimizations that can bite you when you thought you were doing everything right, but misunderstood undefined behavior. This is not such a case. If you write that kind of code, wiping your database is letting you off easy.