Re: [PATCH] mailinfo: don't decode invalid =XY quoted-printable sequences

2017-09-25 Thread Jeff King
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 over

Re: [PATCH] mailinfo: don't decode invalid =XY quoted-printable sequences

2017-09-23 Thread René Scharfe
Am 23.09.2017 um 20:04 schrieb René Scharfe: > 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. Forgot to add: Reported-by: Jeff King René

[PATCH] mailinfo: don't decode invalid =XY quoted-printable sequences

2017-09-23 Thread René Scharfe
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. Signed-off-by: Rene Scharfe --- mailinfo.c | 11 --- 1 file changed, 8 insertions(+), 3 delet