|
|
|
|
|
by MaulingMonkey
3542 days ago
|
|
Part of the interview for my last job involved interviewing me about debugging, which I thought was neat. "What's wrong with this code?" All the samples were relatively simple - less than 30 lines each? - Double delete, caused by not following the rule of 3 in C++, which would likely crash
- Multithreading code missing volatile or memory barriers (which segued into a discussion of it's disassembly)
- Nonvirtual delete through base pointer Extremely realistic - it's all stuff I've seen and fixed in the wild (this was for a non-entry gamedev job involving plenty of C++) |
|