X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 8485BDC008E for ; Tue, 23 Apr 2013 18:22:37 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hm14so3284142wib.5 for ; Tue, 23 Apr 2013 11:22:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=sKW9gq6j9hStc5X9wDYiA4BGm+tsLhHDUg5QsAxBKBc=; b=RoeqPJwHKLW/DTfPDo5KNKXzI9CFxf86N6LMXfX6TZKkn6shy6rHfa+LA3QiLHr2XW C/KmOZkk88bBnFGJCDJhjX8h4VZ0x6vSGCIMf/UzK7o/atQZC2VRUmoUzaoOZyNxKRzd mVlTMhz7rGMohr/oUcpQsOPntHQCksEgFDlQGdT+3Avcl2H6NYbyrxSYBuXzUI/wpLq/ +wK5NHttvAYTbyorpWAn9PzuJAkbKXZTfxXvB7+Bq4sN9UDKPNa5Ltc8XKDfjPDPE9q5 jwRGUzeMp7V12uY45xq+FC2OHhptIhzO8sYuFz5nr1bdFMSR9dVzt4RzUMh7FjvqRk+i 6tOg== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.180.189.41 with SMTP id gf9mr6925692wic.32.1366741355851; Tue, 23 Apr 2013 11:22:35 -0700 (PDT) Received: by 10.180.88.165 with HTTP; Tue, 23 Apr 2013 11:22:35 -0700 (PDT) In-Reply-To: <1366740679-25308-1-git-send-email-hlandau@devever.net> References: <1366740679-25308-1-git-send-email-hlandau@devever.net> Date: Tue, 23 Apr 2013 13:22:35 -0500 Message-ID: Subject: Re: [alpine-devel] [PATCH] Fixed postfix bug causing postconf -m to segfault From: William Pitcock To: Hugo Landau Cc: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmYk4ZrcCkRubm39wKiWZdRHAtmIRraMduBDghu/N5rig2peJxfrzrAdtSdxUbjLabVphOg Applied, thanks. On Tue, Apr 23, 2013 at 1:11 PM, Hugo Landau wrote: > 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 > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---