Snes9x - Portable Super Nintendo Entertainment System (TM) emulator
Go to file
Ari Sundholm 60aabb91d7 Fix some undefined behavior
The destructor of Resampler needs to be virtual, as it is subclassed
and pointers to objects subclassed from it are being deleted.

The issue in controls.cpp is that the loop ends up reading past the
end of an array. The small rewrite of the loop also makes it more
readable.

In memmap.cpp, there is an assignment statement of the following form:
	a[i++] = b[i];
It is undefined what i's value should be in b[i], so this was made
explicit.
2017-09-11 00:42:36 +03:00
apu Fix some undefined behavior 2017-09-11 00:42:36 +03:00
docs Update changes.txt. 2017-05-15 17:30:15 -05:00
filter Add copyrights. 2016-10-15 11:31:26 -05:00
gtk gtk, unix: fixes to unbreak build and loading ROMs 2017-09-10 23:42:09 +03:00
jma Add copyrights. 2016-10-15 11:31:26 -05:00
libretro libretro: change remaining libsnes references in msvc project 2017-07-23 21:13:12 +02:00
macosx Add copyrights. 2016-10-15 11:31:26 -05:00
unix gtk, unix: fixes to unbreak build and loading ROMs 2017-09-10 23:42:09 +03:00
unzip Guard Z_BZIP2ED with #ifdef HAVE_BZIP2 in miniunz.c, unzip.c 2014-01-29 21:41:59 +00:00
win32 Merge branch 'msu1-zip' 2017-09-03 14:56:32 -07:00
.gitignore Reference gitignore in solution 2017-04-29 18:13:57 +02:00
65c816.h Add copyrights. 2016-10-15 11:31:26 -05:00
bsx.cpp Add missing includes 2017-04-17 14:43:32 +02:00
bsx.h Add missing includes 2017-04-17 14:43:32 +02:00
c4.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
c4.h Add copyrights. 2016-10-15 11:31:26 -05:00
c4emu.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
cheats.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
cheats.h Add copyrights. 2016-10-15 11:31:26 -05:00
cheats2.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
clip.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
conffile.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
conffile.h Introduce --with-system-zip configure flag to use system zip (minizip) 2016-11-11 18:26:59 +01:00
controls.cpp Fix some undefined behavior 2017-09-11 00:42:36 +03:00
controls.h Add copyrights. 2016-10-15 11:31:26 -05:00
cpu.cpp Release bsx streams on reset 2017-04-17 12:46:20 +02:00
cpuaddr.h Add copyrights. 2016-10-15 11:31:26 -05:00
cpuexec.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
cpuexec.h Add copyrights. 2016-10-15 11:31:26 -05:00
cpumacro.h Add copyrights. 2016-10-15 11:31:26 -05:00
cpuops.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
cpuops.h Add copyrights. 2016-10-15 11:31:26 -05:00
crosshairs.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
crosshairs.h Add copyrights. 2016-10-15 11:31:26 -05:00
debug.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
debug.h Add copyrights. 2016-10-15 11:31:26 -05:00
display.h Make LAST_DIR actually last one 2017-03-24 18:11:49 +01:00
dma.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
dma.h Add copyrights. 2016-10-15 11:31:26 -05:00
dsp.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
dsp.h Add copyrights. 2016-10-15 11:31:26 -05:00
dsp1.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
dsp2.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
dsp3.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
dsp4.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
font.h Add copyrights. 2016-10-15 11:31:26 -05:00
fxdbg.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
fxemu.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
fxemu.h Add copyrights. 2016-10-15 11:31:26 -05:00
fxinst.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
fxinst.h Add copyrights. 2016-10-15 11:31:26 -05:00
getset.h Begin adding MSU-1 support. Data streaming is working in Windows, audio streaming is not. 2016-11-03 11:40:47 -07:00
gfx.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
gfx.h Add copyrights. 2016-10-15 11:31:26 -05:00
globals.cpp Begin adding MSU-1 support. Data streaming is working in Windows, audio streaming is not. 2016-11-03 11:40:47 -07:00
language.h fixed typo 2016-12-12 13:59:20 +08:00
loadzip.cpp Add support for loading .msu1 packs as ROM files, if they actually contain a ROM file 2017-08-17 11:30:44 -07:00
logger.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
logger.h Add copyrights. 2016-10-15 11:31:26 -05:00
memmap.cpp Fix some undefined behavior 2017-09-11 00:42:36 +03:00
memmap.h Merge remote-tracking branch 'bsx/bsx' 2016-11-27 18:02:03 +01:00
messages.h Add copyrights. 2016-10-15 11:31:26 -05:00
missing.h Add copyrights. 2016-10-15 11:31:26 -05:00
movie.cpp Change movie file handle closing to fix win32 crash 2016-11-19 20:05:29 +01:00
movie.h Add copyrights. 2016-10-15 11:31:26 -05:00
msu1.cpp gtk, unix: fixes to unbreak build and loading ROMs 2017-09-10 23:42:09 +03:00
msu1.h Minor refactor to .msu1 pack hotpatching 2017-09-09 17:02:52 -07:00
netplay.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
netplay.h Add copyrights. 2016-10-15 11:31:26 -05:00
obc1.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
obc1.h Add copyrights. 2016-10-15 11:31:26 -05:00
pixform.h Add copyrights. 2016-10-15 11:31:26 -05:00
port.h Use escaped backslash for win32 paths. 2016-11-07 11:28:33 -08:00
ppu.cpp Fix MSU-1 sample buffer size 2016-11-03 13:10:01 -07:00
ppu.h Add copyrights. 2016-10-15 11:31:26 -05:00
sa1.cpp Merge remote-tracking branch 'bsx/bsx' 2016-11-27 18:02:03 +01:00
sa1.h Add copyrights. 2016-10-15 11:31:26 -05:00
sa1cpu.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
sar.h Add copyrights. 2016-10-15 11:31:26 -05:00
screenshot.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
screenshot.h Add copyrights. 2016-10-15 11:31:26 -05:00
sdd1.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
sdd1.h Add copyrights. 2016-10-15 11:31:26 -05:00
sdd1emu.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
sdd1emu.h Add copyrights. 2016-10-15 11:31:26 -05:00
server.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
seta.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
seta.h Add copyrights. 2016-10-15 11:31:26 -05:00
seta010.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
seta011.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
seta018.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
snapshot.cpp Merge branch 'msu1' 2016-11-14 13:12:00 -06:00
snapshot.h Add MSU-1 to snapshots. 2016-11-07 11:03:37 -08:00
snes9x.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
snes9x.h Update version number to 1.55. 2017-05-06 18:02:01 -05:00
spc7110.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
spc7110.h Add copyrights. 2016-10-15 11:31:26 -05:00
spc7110dec.cpp Initial 1.52 import 2010-09-25 17:46:12 +02:00
spc7110dec.h Initial 1.52 import 2010-09-25 17:46:12 +02:00
spc7110emu.cpp Initial 1.52 import 2010-09-25 17:46:12 +02:00
spc7110emu.h Initial 1.52 import 2010-09-25 17:46:12 +02:00
srtc.cpp Add copyrights. 2016-10-15 11:31:26 -05:00
srtc.h Add copyrights. 2016-10-15 11:31:26 -05:00
srtcemu.cpp Initial 1.52 import 2010-09-25 17:46:12 +02:00
srtcemu.h Initial 1.52 import 2010-09-25 17:46:12 +02:00
statemanager.cpp Move statemanager to s9x folder, add rewind support to unix port 2012-03-29 15:31:41 +02:00
statemanager.h Move statemanager to s9x folder, add rewind support to unix port 2012-03-29 15:31:41 +02:00
stream.cpp Correct unzStream revert 2017-06-12 22:39:59 +02:00
stream.h Add seek capability to unzStream 2016-12-03 18:03:58 +01:00
tile.cpp Switch to anomie's version of hires pixel with correct placement 2017-06-11 23:50:43 +02:00
tile.h Add copyrights. 2016-10-15 11:31:26 -05:00