FreeBSD Bugzilla – Attachment 178115 Details for
Bug 215427
[patch] games/acm coredumps immediately on start
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
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.
patch-V_lib_InitAWin.c (text/plain), 616 bytes, created by
Jeff Gibbons
on 2016-12-19 19:48:06 UTC
(
hide
)
Description:
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.
Filename:
MIME Type:
Creator:
Jeff Gibbons
Created:
2016-12-19 19:48:06 UTC
Size:
616 bytes
patch
obsolete
>--- V/lib/InitAWin.c 2016-12-01 03:12:04.232788000 -0800 >+++ V/lib/InitAWin.c 2016-12-02 03:05:52.713495000 -0800 >@@ -69,6 +69,13 @@ > w->csPool1 = (ColorSegment *) malloc(w->CSSize1 * sizeof(ColorSegment)); > memset(w->csPool1, 0, w->CSSize1 * sizeof(ColorSegment)); > >+ // Initialize csPool2 so program doesn't crash later, >+ // when trying to free it. >+ { >+ w->CSSize2 = 0; >+ w->csPool2 = (ColorSegment *) NULL; >+ } >+ > w->scanLine = (ScanLine *) malloc((w->height + 1) * sizeof(ScanLine)); > w->lastScanLine = (ScanLine *) malloc((w->height + 1) * sizeof(ScanLine)); > w->otherLastScanLine = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215427
: 178115