I managed to reproduce the problem (but not a crash as such) on a Debian 8 machine (i386) from Digital Ocean (it is increasingly difficult to find a i386 machine these days).
In this machine, the output of formail with sample email had garbage chars, and the garbage was different every time. The patch seems to fix the problem. I believe the patch to be correct, so I've uploaded 3.22-26 with it. Thanks.