This usually is not an issue but during DF version changes this might help prevent some crashes and find some issues with structures. Namely i have this in mind:
Some pointer value checks. Check if points to allocated memory
String/vector length checks. Maybe warn if it's a huge vector. Also could improve perf for huge vectors
I think misaligned strings are the main cause of problems. We should probably do something at the C++ level to mark invalid strings (check-structures-sanity has code to determine whether a string is valid)
This usually is not an issue but during DF version changes this might help prevent some crashes and find some issues with structures. Namely i have this in mind: