ports/60018: [patch] Unreak lang/hope on -CURRENT (memset)
Volker Stolz
stolz at i2.informatik.rwth-aachen.de
Sun Dec 7 17:20:20 UTC 2003
>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 at 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:
More information about the freebsd-ports-bugs
mailing list