X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from io.devever.net (io.devever.net [23.21.112.74]) by mail.alpinelinux.org (Postfix) with ESMTP id 181BEDC008E for ; Tue, 23 Apr 2013 18:11:38 +0000 (UTC) Received: from master.lhh.devever.net (cpc23-heme11-2-0-cust437.9-1.cable.virginmedia.com [81.109.105.182]) by io.devever.net (Postfix) with ESMTPA id A793920682; Tue, 23 Apr 2013 18:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=devever.net; s=io; t=1366740697; bh=k7LNn0KJIT+SArPkC4qQSiMQE2exh/yq02dQuA4p/y0=; h=From:To:Cc:Subject:Date; b=asfqFSAYT0tGSJ9klT5vrDv92LGnykw0n/0Ovq40Aclh+dvCdVwC4OQun/83RkNJF WPE6Y2oHCZl0cWVo0WemXtw8O4JATu8EPJ+mi5qYsJ0Cs07YuDkKbErj+0DF82hfiK +wlqh8kys4R5sibXG8st7KVkImXp3msWLSfIiI3g= From: Hugo Landau To: alpine-devel@lists.alpinelinux.org Cc: Hugo Landau Subject: [alpine-devel] [PATCH] Fixed postfix bug causing postconf -m to segfault Date: Tue, 23 Apr 2013 18:11:19 +0000 Message-Id: <1366740679-25308-1-git-send-email-hlandau@devever.net> X-Mailer: git-send-email 1.8.0 X-Spam-Status: No, score=-0.1 required=10.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on io.devever.net X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Running postconf -m resulted in a segfault and no output. The bug originated in dynamic-maps3.patch. postconf_other.c was modified by this patch such that it called concatenate(), but the file was not modified to include , resulting in the function being undeclared. This resulted in gcc incorrectly assuming a default prototype for it with return type int instead of char*, causing pointer truncation on 64-bit systems, causing a segfault when the truncated pointer is passed to another function. The fix is to #include in postconf_other.c. The patch has been updated. I don't have abuild 2.14 on this machine so I'll leave updating the SHA256 checksums to whoever commits it. --- main/postfix/dynamic-maps3.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/postfix/dynamic-maps3.patch b/main/postfix/dynamic-maps3.patch index 0e5a3c9..81848ab 100644 --- a/main/postfix/dynamic-maps3.patch +++ b/main/postfix/dynamic-maps3.patch @@ -311,7 +311,7 @@ index 04f9404..1752450 100644 +/* Global library. */ + +#include -+ ++#include /* Application-specific. */ #include -- 1.8.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---