From: "Ivan A. Melnikov" <iv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [i586] mailutils & glibc 2.26/2.27
Date: Wed, 15 Aug 2018 16:15:11 +0400
Message-ID: <20180815121511.glihfcvv73hmdcdx@titan.localdomain> (raw)
In-Reply-To: <201808151413.46729.asy@altlinux.org>
[-- Attachment #1.1: Type: text/plain, Size: 990 bytes --]
On Wed, Aug 15, 2018 at 02:13:46PM +0400, Sergey Afonin wrote:
> Продолжаю про слом теста.
>
> Про mailutils 3.4 выяснилось следующее. При сборке с
> glibc-devel-6:2.25-alt4 все тесты проходят, если же
> обновить до glibc-devel-6:2.26.0.124.98f244e-alt1, то
> получается
>
> 189: mhl usenet FAILED (mhl.at:49)
>
> Пересборка на i586 сломалась, соответственно, 26-ого
> декабря. Кто виноват, и что делать?
>
Не знаю, но предлагаю разобраться и починить.
В моём хешере приложенный патч вроде бы исправляет проблему, и он явно не
делает ничего плохого, но я не уверен, что решать проблему надо именно
так.
--
wbr,
iv m.
[-- Attachment #1.2: mailutils-3.4-alt-fix-mh-format.patch --]
[-- Type: text/x-patch, Size: 800 bytes --]
commit 51f10424d329aad87136ef8d7fac2cae3ce766df
Author: Ivan A. Melnikov <iv@altlinux.org>
Date: Wed Aug 15 16:08:55 2018 +0400
Force terminating \0 in mh_format result
Apparently, mu_stream_read is not required to put the
terminating zero into the buffer, so we need to do it
in its caller.
Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
diff --git a/mh/mh_format.c b/mh/mh_format.c
index d4aff7f4d..77faaf030 100644
--- a/mh/mh_format.c
+++ b/mh/mh_format.c
@@ -726,6 +726,7 @@ mh_format_str (mh_format_t fmt, char *str, size_t width, char **pstr)
buf = mu_alloc (size + 1);
MU_ASSERT (mu_stream_seek (outstr, 0, MU_SEEK_SET, NULL));
MU_ASSERT (mu_stream_read (outstr, buf, size, NULL));
+ buf[size] = 0;
*pstr = buf;
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2018-08-15 12:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-15 10:13 Sergey Afonin
2018-08-15 11:17 ` Alexey V. Vissarionov
2018-08-15 11:26 ` Sergey Afonin
2018-08-15 11:30 ` Sergey Afonin
2018-08-15 11:41 ` Sergey Afonin
2018-08-15 11:59 ` Alexey V. Vissarionov
2018-08-15 12:15 ` Ivan A. Melnikov [this message]
2018-08-15 12:50 ` Sergey Afonin
2018-08-16 6:32 ` Sergey Afonin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180815121511.glihfcvv73hmdcdx@titan.localdomain \
--to=iv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git