desmume/desmume
riccardom 0c7d5d796d Fix buffer overflow when creating firmware.dfc file string
When the user uses an external firmware image, there is a 
call to getpathnoext() in firmware.cpp:571 in order to
generate a file name for the saved firmware config file.

The size of the MMU.fw.userfile char buffer is only 260,
as declared in mc.h:73. However, getpathnoext() expects
the buffer size to be MAX_PATH, which is declared as 1024
in types.h:77. The buffer overflow occurs in path.h:293
with the call to strncpy(), which copies 1024 chars into
MMU.fw.userfile, which is only 260 chars.

This patch fixes this bug by setting the MMU.fw.userfile
char buffer to a size of MAX_PATH. This is consistent with
the char buffers used for the other file names.

From rogerman, #3328686
2011-06-25 21:50:00 +00:00
..
autopackage remove cvsignore files 2008-09-08 17:33:47 +00:00
po Fix make distcheck 2011-05-24 17:06:58 +00:00
src Fix buffer overflow when creating firmware.dfc file string 2011-06-25 21:50:00 +00:00
AUTHORS win32: fix osd compositing pipeline for singlecore 2009-08-10 03:29:43 +00:00
COPYING This commit was generated by cvs2svn to compensate for changes in r5, 2006-04-05 20:14:28 +00:00
ChangeLog Changelog: oops, remove duplicated line :) 2011-06-05 16:57:58 +00:00
Makefile.am include file format specs with dist and always define HAVE_LUA for developer builds 2009-11-28 05:31:46 +00:00
NEWS This commit was generated by cvs2svn to compensate for changes in r5, 2006-04-05 20:14:28 +00:00
README Update general and windows READMEs 2009-01-04 16:05:14 +00:00
README.LIN Updated the website url. 2008-09-05 22:40:27 +00:00
README.MAC Updated the website url. 2008-09-05 22:40:27 +00:00
README.TRANSLATION Cocoa Port: updated documentation, video output view moved into it's own file, input class added, fixed window resizing bugs, ROM Info interface updated and icon preview added, much improved about window, emulation moved to separate threadd, xcode project file added (compile from xcode or codeblocks) 2008-04-01 04:59:52 +00:00
README.WIN win32: update readme.win and add italian language patch 2009-11-22 22:29:28 +00:00
TODO This commit was generated by cvs2svn to compensate for changes in r5, 2006-04-05 20:14:28 +00:00
autogen.sh Updated comment. 2007-07-26 17:25:42 +00:00
compile Fixed linux version (cli and gtk interfaces). Hope I didn't broke anything. 2006-10-12 21:59:58 +00:00
configure.ac configure: better libagg detection 2011-06-08 10:03:30 +00:00
confosx etc 2010-11-18 02:35:37 +00:00
dsm.txt update version info to 095 and also port changed dsm spec from 094 branch 2009-07-07 23:05:30 +00:00
dsv.txt more work on the sav system. see forum for details 2009-06-01 08:40:46 +00:00
wxwin.m4 Added a check to detect wx installation. 2009-12-14 20:37:21 +00:00

README

                        DeSmuME
        _________________________________________
        Copyright (C) 2006 yopyop
        Copyright (C) 2006-2007-2008-2009 DeSmuME team


1) Introduction.............................................13
2) Staff/Thanks.............................................36
3) Contact information......................................72
4) Disclaimer...............................................82


1 Introduction________________________________________________

DeSmuME is a Nintendo DS emulator under GNU GPL.

DeSmuME can boot homebrew and games, some of which are
playable.

For installation/how to use informations, check the ports
specific README files:

  * README.LIN for the linux port
  * README.WIN for the windows port
  * README.MAC for the mac port


2 Staff/Thanks________________________________________________

See the AUTHORS file for team members list.

Thanks to:

  * yopyop (original author of DeSMUME),
    for releasing the source code of this great emulator.

  * Martin Korth (author of GBATEK),
    for his well-written Gameboy Advance and Nintendo DS
    documentation.


3 Contact information_________________________________________

E-mail:	guillaume.duhamel@gmail.com
Web:    http://desmume.org
IRC:    irc://irc.freenode.net/desmume

Please don't ask for roms, bios files or any other
copyrighted stuff.


4 Disclaimer__________________________________________________

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as 
published by the Free Software Foundation; either version 2 of 
the License, or (at your option) any later version.

This program is distributed in the hope that it will be
useful,but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA  02111-1307  USA

See the GNU General Public License details in COPYING.