That depends on the way the safe gets corrupted. If minecraft can't load a chunk from the region file (because it was written when the power went out, for example), that chunk gets regenerated.
Corrupted saves are cases where the chunk can be loaded, but triggers a bug (or is in an...