Date: Sun, 7 Dec 2003 18:11:39 +0100 (CET) From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: lev@FreeBSD.org Subject: ports/60018: [patch] Unreak lang/hope on -CURRENT (memset) Message-ID: <200312071711.hB7HBdOF027772@menelaos.informatik.rwth-aachen.de> Resent-Message-ID: <200312071720.hB7HKEwg043004@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60018 >Category: ports >Synopsis: [patch] Unreak lang/hope on -CURRENT (memset) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Dec 07 09:20:14 PST 2003 >Closed-Date: >Last-Modified: >Originator: Volker Stolz >Release: FreeBSD 4.9-RC i386 >Organization: Lehrstuhl für Informatik II >Environment: System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-RC FreeBSD 4.9-RC #10: Tue Oct 7 12:32:25 CEST 2003 root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386 >Description: Use memset() after malloc(). Upstream notified. >How-To-Repeat: http://bento.freebsd.org/errorlogs/i386-5-latest/hope-0.0.log >Fix: Add new patch-file (and don't forget to remove BROKEN-tag): --- patch-src-memory.c begins here --- --- src/memory.c.orig Sun Dec 7 18:01:46 2003 +++ src/memory.c Sun Dec 7 18:01:50 2003 @@ -22,6 +22,7 @@ { if ((base_memory = (char *)malloc((size_t)MEMSIZE)) == NULL) error(FATALERR, "can't allocate memory"); + memset(base_memory, NULL, (size_t)MEMSIZE); top_memory = base_memory + RoundDown(MEMSIZE); lim_temp = top_string = base_memory; --- patch-src-memory.c ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312071711.hB7HBdOF027772>