[Bug 215427] [patch] games/acm coredumps immediately on start

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 19 19:48:07 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215427

            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 at FreeBSD.org
          Reporter: jgibbons at protogate.com
          Keywords: patch

Created attachment 178115
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178115&action=edit
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 zero
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() the
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.

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


More information about the freebsd-ports-bugs mailing list