[Bug 211] New: FCEU State Crashing patch.

[email protected]
Newsgroups gmane.linux.mandrake.plf.general
Message-ID <[email protected]/bugzilla/>
http://plf.zarb.org/bugzilla/show_bug.cgi?id=211

           Summary: FCEU State Crashing patch.
           Product: fceu
           Version: 0.98.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: program
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Saving states is susecptable to an fceu "off by one" bug.

IRC chatter:

<qeed> hmm fceuss_savefp isnt that big of a function
<qeed> let me take a whack at it
<qeed> Zombie: still there?
<qeed> heh this is the problem
<qeed> memset(header+4,0,13);
<qeed> header is a 16 byte array
<qeed> change header+4 to header+3
<qeed> its in state.c
<Zombie> so, memset(header+3,0,13);
<Zombie> Like that?
<qeed> yeah
<qeed> heh, i cant believe gcc barf at a off by one
<qeed> though i guess thats goo


I already made a patch for this and it works.


-- 
Configure bugmail: http://plf.zarb.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.