bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10536: 23.3; Make base64-decode more fault tolerant


From: Lars Ingebrigtsen
Subject: bug#10536: 23.3; Make base64-decode more fault tolerant
Date: Thu, 27 Jun 2019 17:42:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> writes:

> -       READ_QUADRUPLET_BYTE (-1);
> +       /* Be tolerant against missing final padding '='.  */
> +       READ_QUADRUPLET_BYTE (e-to);

We discussed this a bit last year, but didn't come to any conclusion,
but I think on the whole, having base64-decode be strict or non-strict
here doesn't make much practical difference (because it's very uncommon
to strip the trailing = padding characters), but theoretical paranoia
about this somehow leading to subsequent errors...  somehow...  may be
warranted.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]