X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fbase64.c;h=e63522ec4d5bc4a002bc8ca84fcd40a63339ddc4;hb=9a1edd98a95b013a5130316611778fde070a5124;hp=1d84c1e5c34116bbfdf9b137bd26ba19b1f3a1da;hpb=cf3cd306062a08969c41a1cdd32c6855f1abecf1;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/base64.c b/src/src/base64.c index 1d84c1e5c..e63522ec4 100644 --- a/src/src/base64.c +++ b/src/src/base64.c @@ -5,7 +5,7 @@ /* Copyright (c) Tom Kistner 2004, 2015 */ /* License: GPL */ -/* Copyright (c) University of Cambridge 1995 - 2017 */ +/* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -173,7 +173,7 @@ while ((x = *code++) != 0) while (isspace(y = *code++)) ; /* debug_printf("b64d: '%c'\n", y); */ - if (y == 0 || (y = dec64table[y]) == 255) + if (y > 127 || (y = dec64table[y]) == 255) return -1; *result++ = (x << 2) | (y >> 4);