Date: Sun, 14 May 2006 03:06:38 -0700 From: Pascal Hofstee <caelian@gmail.com> To: Marcus Alves Grando <mnag@FreeBSD.org> Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/sysutils/file Makefile distinfo Message-ID: <1147601198.25766.3.camel@synergy.odyssey.homeunix.org> In-Reply-To: <200605130356.k4D3uGZV034400@repoman.freebsd.org> References: <200605130356.k4D3uGZV034400@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2006-05-13 at 03:56 +0000, Marcus Alves Grando wrote: > mnag 2006-05-13 03:56:16 UTC > > FreeBSD ports repository > > Modified files: > sysutils/file Makefile distinfo > Log: > - Update to 4.17 This update breaks the build on machines with MALLOC_OPTIONS set to AJ (which is the default on CURRENT) because of an assumption made that malloc-ed memory will automatically be initialized to 0x0. Below is the contents of patch-src_apprentice.c which fixes the build on my amd64 7.0-CURRENT system. --- src/apprentice.c.orig Sun May 14 02:57:19 2006 +++ src/apprentice.c Sun May 14 02:57:49 2006 @@ -386,6 +386,7 @@ file_oomem(ms); return -1; } + memset(marray, 0, maxmagic * sizeof(*marray)); marraycount = 0; /* print silly verbose header for USG compat. */ -- Pascal Hofstee
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147601198.25766.3.camel>