GNU bug report logs - #37758
27.0.50; Support multibyte characters in function 'auth-source--pad'an; with patch

Previous Next

Package: emacs;

Reported by: mgcyung <mgcyung <at> gmail.com>

Date: Tue, 15 Oct 2019 04:36:01 UTC

Severity: normal

Tags: fixed, moreinfo

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: mgcyung <mgcyung <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Support multibyte characters in function 'auth-source--pad'an;
 with patch
Date: Tue, 15 Oct 2019 10:49:46 +0800
[Message part 1 (text/plain, inline)]
'auth-source--pad' use 'length' to get byte length of a
string. However, 'length' return the number of characters which is not
the byte length with multibyte characters such as Chinese
character. This may causes an error "GnuTLS cipher
AES-256-CBC/encrypt input block length xxxx is not a multiple of the
required 16".

According to the doc of 'length'. 'length' can be replaced by
'string-bytes'. And a patch is attached.

[auth-source--pad_byte-length.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]


This bug report was last modified 5 years and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.