Describe how you would identify and mitigate memory corruption vulnerabilities such as buffer overflows in C-based flight software.