EmuCR Feeds
Email Us

EmuCR:DeSmuMEDeSmuME SVN r4047 is released. DeSmuME is an open source Nintendo DS(NDS) emulator for Linux, Mac OS and Windows. DeSmuME supports save states, the ability to increase the size of the screen and it supports filters to improve image quality. DeSmuME also supports microphone use on Windows and Linux ports, as well as direct video and audio recording. The emulator also features a built-in movie recorder.

DeSmuME SVN Changelog:
r4047
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

Download: DeSmuME SVN r4047 32bit
Download: DeSmuME SVN r4047 64bit
Source: Here

1 Comments:

Can't post a comment? Try This!