Preventing (and fixing) parser mismatch vulnerabilities
As I discussed previously, parser mismatches are an underappreciated class of vulnerabilities. In that post I described what they are and showcased a few examples, but today I'd like to talk about what to do about them.
I'll present a few options, with advice on when to use each technique.