On Sat, Sep 23, 2017 at 08:04:40PM +0200, René Scharfe wrote: > Decode =XY in quoted-printable segments only if X and Y are hexadecimal > digits, otherwise just copy them. That's at least better than > interpreting negative results from hexval() as a character. Thanks, this looks good to me overall. I wondered if we should die() here, but walking over cruft may be more friendly. The base64 case does the same, though it actually ignores the bytes rather than copying them. Since this is never _supposed_ to happen, it's hard to say what behavior would be preferable without seeing a real-world broken case. -Peff