From owner-freebsd-ports@FreeBSD.ORG Wed Oct 18 20:06:24 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2C1216A415 for ; Wed, 18 Oct 2006 20:06:24 +0000 (UTC) (envelope-from cokane@mail.cokane.org) Received: from ms-smtp-03.ohiordc.rr.com (ms-smtp-03.ohiordc.rr.com [65.24.5.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6171043D66 for ; Wed, 18 Oct 2006 20:06:21 +0000 (GMT) (envelope-from cokane@mail.cokane.org) Received: from ramen.cokane.org (rrcs-70-62-16-230.central.biz.rr.com [70.62.16.230]) by ms-smtp-03.ohiordc.rr.com (8.13.6/8.13.6) with SMTP id k9IK6IlA026693 for ; Wed, 18 Oct 2006 16:06:19 -0400 (EDT) Received: (qmail 89472 invoked by uid 1001); 18 Oct 2006 20:03:43 -0000 Date: Wed, 18 Oct 2006 20:03:43 +0000 From: Coleman Kane To: marcus@freebsd.org Message-ID: <20061018200343.GA89165@ramen.coleyandcheryl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: amd64@freebsd.org, ports@freebsd.org, gnome@freebsd.org Subject: Regression in evolution-data-server 2.8.1 import X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 20:06:25 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I am a user of the amd64 platform and I have noticed a regression that was introduced with GNOME 2.16.1, and specifically databases/evolution-data-server 2.8.1. The bug fixed by ports pr-93215 had its patch removed, but the bug was never addressed by GNOME. The source has been slightly altered, but the large memory allocation still occurs. I am attaching a new patch to the camel/camel-object.c file that was originally patched by: http://www.freebsd.org/cgi/cvsweb.cgi/ports/databases/evolution-data-server/files/Attic/patch-camel_camel-object.c -- Coleman Kane --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-camel_camel-object.c" --- camel-object.c.orig Wed Oct 18 15:53:34 2006 +++ camel-object.c Wed Oct 18 15:55:01 2006 @@ -457,7 +457,7 @@ } /* we batch up the properties and set them in one go */ - if (!(argv = g_try_malloc ((gulong)(sizeof (*argv) + (count - CAMEL_ARGV_MAX) * sizeof (argv->argv[0]))))) + if (!(argv = g_try_malloc ((guint32)(sizeof (*argv) + (count - CAMEL_ARGV_MAX) * sizeof (argv->argv[0]))))) return -1; argv->argc = 0; @@ -537,8 +537,8 @@ count = g_slist_length(props); - arggetv = g_malloc0(sizeof(*arggetv) + (count - CAMEL_ARGV_MAX) * sizeof(arggetv->argv[0])); - argv = g_malloc0(sizeof(*argv) + (count - CAMEL_ARGV_MAX) * sizeof(argv->argv[0])); + arggetv = g_malloc0((guint32)(sizeof(*arggetv) + (count - CAMEL_ARGV_MAX) * sizeof(arggetv->argv[0]))); + argv = g_malloc0((guint32)(sizeof(*argv) + (count - CAMEL_ARGV_MAX) * sizeof(argv->argv[0]))); l = props; i = 0; while (l) { --tKW2IUtsqtDRztdT--