[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] base32, base64: disallow non-canonical encodings
From: |
Simon Josefsson |
Subject: |
Re: [PATCH] base32, base64: disallow non-canonical encodings |
Date: |
Fri, 27 Oct 2023 09:28:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Pádraig Brady <P@draigBrady.com> writes:
> To give a little more context, this will avoid
> round trip issues like the following, by failing early:
>
> $ echo "HelloWorld==" | base64 -d | base64
> HelloWorlQ==
Thanks for background and patches! There are use-cases for bad inputs
(both for good and malicious purposes), but I believe these should be
considered corner-cases and agree that the default should be to reject
them.
/Simon
signature.asc
Description: PGP signature