@lispi314 @moffintosh @gsuberland Something like Ada SPARK would be suitable. Though for buffer overflows (like this seems to be) essentially every contemporary programming language would allow writing a parser without issues like that... except C and C++.
It's not especially hard to do better here.