Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 183156 Details for
Bug 257963
games-emulation/zsnes-1.51-r2 crashes due to fortify issues when compiled with gcc 4.3.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix from rpmfusion
zsnes-1.51-FORTIFY_SOURCE.patch (text/plain), 3.29 KB, created by
Peter Alfredsen (RETIRED)
on 2009-02-25 17:31:14 UTC
(
hide
)
Description:
Fix from rpmfusion
Filename:
MIME Type:
Creator:
Peter Alfredsen (RETIRED)
Created:
2009-02-25 17:31:14 UTC
Size:
3.29 KB
patch
obsolete
>--- zsnes_1_51/src/initc.c.fortify 2007-01-20 01:02:24.000000000 +0100 >+++ zsnes_1_51/src/initc.c 2007-02-26 12:10:19.000000000 +0100 >@@ -1464,8 +1464,8 @@ > clearmem2(); > } > >-extern unsigned char BRRBuffer[32]; >-extern unsigned char echoon0; >+extern unsigned char BRRBuffer[]; >+extern unsigned char echoon0[]; > extern unsigned int PHdspsave; > extern unsigned int PHdspsave2; > unsigned char echobuf[90000]; >@@ -1479,7 +1479,7 @@ > memset(vidmemch4, 0, 4096); > memset(vidmemch8, 0, 4096); > memset(BRRBuffer, 0, PHdspsave); >- memset(&echoon0, 0, PHdspsave2); >+ memset(echoon0, 0, PHdspsave2); > memset(echobuf, 0, 90000); > memset(spcBuffera, 0, 65536*4+4096); > memset(DSPMem, 0, 256); >@@ -1822,7 +1822,7 @@ > > extern unsigned int nmiprevaddrl, nmiprevaddrh, nmirept, nmiprevline, nmistatus; > extern unsigned char spcnumread, yesoutofmemory; >-extern unsigned char NextLineCache, sramsavedis, sndrot, regsbackup[3019]; >+extern unsigned char NextLineCache, sramsavedis, sndrot[], regsbackup[3019]; > extern unsigned int Voice0Freq, Voice1Freq, Voice2Freq, Voice3Freq; > extern unsigned int Voice4Freq, Voice5Freq, Voice6Freq, Voice7Freq; > extern unsigned int dspPAdj; >@@ -2621,7 +2621,7 @@ > } > > sramsavedis = 0; >- memcpy(&sndrot, regsbackup, 3019); >+ memcpy(sndrot, regsbackup, 3019); > > if (yesoutofmemory) { asm_call(outofmemfix); } > asm_call(GUIDoReset); >--- zsnes_1_51/src/zstate.c.fortify 2007-02-26 12:14:30.000000000 +0100 >+++ zsnes_1_51/src/zstate.c 2007-02-26 12:17:22.000000000 +0100 >@@ -99,15 +99,15 @@ > copy_func(buffer, &cycpbl, 4); > copy_func(buffer, &cycpblt, 4); > //SNES PPU Register status >- copy_func(buffer, &sndrot, 3019); >+ copy_func(buffer, sndrot, 3019); > } > > static void copy_spc_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) > { > //SPC stuff, DSP stuff > copy_func(buffer, SPCRAM, PHspcsave); >- copy_func(buffer, &BRRBuffer, PHdspsave); >- copy_func(buffer, &DSPMem, sizeof(DSPMem)); >+ copy_func(buffer, BRRBuffer, PHdspsave); >+ copy_func(buffer, DSPMem, sizeof(DSPMem)); > } > > static void copy_extra_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) >@@ -156,7 +156,7 @@ > /* > if (buffer) //Rewind stuff > { >- copy_func(&buffer, &echoon0, PHdspsave2); >+ copy_func(&buffer, echoon0, PHdspsave2); > } > */ > } >--- zsnes_1_51/src/gblvars.h.fortify 2007-02-26 12:12:33.000000000 +0100 >+++ zsnes_1_51/src/gblvars.h 2007-02-26 12:12:36.000000000 +0100 >@@ -33,9 +33,9 @@ > extern unsigned int SfxR0, *setaramdata, ramsize, *sram, nmiprevaddrh; > extern unsigned int tempesi, tempedi, tempedx, tempebp; > extern unsigned int SPCMultA, PHnum2writespc7110reg, PHdspsave2; >-extern unsigned char sndrot, SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; >-extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[32], *romdata; >-extern unsigned char curcyc, echoon0, spcnumread, NextLineCache, HIRQNextExe; >+extern unsigned char sndrot[], SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; >+extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[], *romdata; >+extern unsigned char curcyc, echoon0[], spcnumread, NextLineCache, HIRQNextExe; > extern unsigned char vidmemch4[4096], vidmemch8[4096], vidmemch2[4096]; > > extern bool C4Enable, SFXEnable, SA1Enable, SPC7110Enable, SETAEnable, DSP4Enable, spcon;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257963
: 183156