Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 19:48:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215427] [patch] games/acm coredumps immediately on start
Message-ID:  <bug-215427-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215427

            Bug ID: 215427
           Summary: [patch] games/acm coredumps immediately on start
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: jgibbons@protogate.com
          Keywords: patch

Created attachment 178115
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178115&action=
=3Dedit
A new file which should be added to /usr/ports/games/acm/files/ to add code=
 to
V/lib/InitAWin.c to zero w->csPool2 after malloc()ing w.

games/acm may coredump immediately after starting on systems which do not z=
ero
malloc()ed memory.  This is because one of the fields of a malloc()ed data
structure (w) contains a pointer (w->csPool2), and if that pointer is never
used, then later code will find the pointer is non-NULL and try to free() t=
he
memory pointed to by the pointer.  The attached patch adds code to set the
pointer to NULL after the initial malloc() call, so later code does not try=
 to
free() it.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215427-13>