]> git.eshelyaron.com Git - emacs.git/commit
Fix sloppy base64 acceptance of some multibyte characters
authorMattias Engdegård <mattiase@acm.org>
Mon, 20 Dec 2021 17:17:23 +0000 (18:17 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 20 Dec 2021 19:22:09 +0000 (20:22 +0100)
commita34650acff3740980ef23d900d35004bcfe2ef04
tree5e34b2538df2849832e3971bc7d0cd9546b5adc9
parent27be90154d1a4b19efe30c97f221b29e3becc920
Fix sloppy base64 acceptance of some multibyte characters

The base64 encoding functions incorrectly accepted some multibyte
characters; stop doing that (bug#52670).

* src/fns.c (base64_encode_1): Reject all multibyte characters.
* test/src/fns-tests.el (fns-tests-base64-encode-string)
(fns-test-base64url-encode-region)
(fns-test-base64url-encode-string): Add tests.
* doc/lispref/text.texi (Base 64): Rephrase outdated manual text.
* etc/NEWS: Add a notice.
doc/lispref/text.texi
etc/NEWS
src/fns.c
test/src/fns-tests.el