If you have any code that can write to flash (bootloader, EEPROM emulation, etc.) then I would check VERY carefully for any way it could be executed unintentionally. It would be wise to carefully design this function to prevent unintentional execution.
Did you set FPROT to protect flash?
If so, there should be no way for flash to be corrupted.
If you don't have a bootloader or any other reason to write to flash from your code, you can set this at address 0x7FFF0D to automatically load at powerup. If you have a requirement to write to flash, you can partition and protect code regions from data regions using FPROT, also.