dolphin/Source/Core
Pokechu22 6de55e416b WaveFile: Fix size check
`count` is the number of stereo samples to write (where each stereo sample is two shorts), while `BUFFER_SIZE` is the size of the buffer in shorts.  So `count` needs to be multiplied by `2`, not `BUFFER_SIZE`.  Also, when this check was failed, the previous code just clobbered whatever was past the end of the buffer after logging the warning, which corrupted `basename`, eventually resulting in Dolphin crashing.

This affected Datel's Wii-compatible Action Replay, which uses a block size of 2298, or 18384 stereo samples, which is 36768 shorts, which is bigger than the buffer size of 32768. (However, the previous commit means that only one block is transfered at a time, eliminating this issue; fixing the bounds check is just a general safety thing instead of an actual bugfix now.)
2022-10-22 11:44:38 -07:00
..
AudioCommon WaveFile: Fix size check 2022-10-22 11:44:38 -07:00
Common JitArm64: Reimplement Force25BitPrecision 2022-10-22 10:03:52 +02:00
Core DSP: Copy audio dma samples one block at a time 2022-10-22 11:44:38 -07:00
DiscIO VolumeVerifier: Add missing assignment to summary_text. 2022-09-23 14:57:55 +02:00
DolphinNoGUI Merge pull request #10751 from Zopolis4/manifesto 2022-09-08 20:36:28 +02:00
DolphinQt Remove most uses of StringFromFormat in favor of fmt 2022-10-12 16:50:47 -07:00
DolphinTool Merge pull request #10751 from Zopolis4/manifesto 2022-09-08 20:36:28 +02:00
InputCommon Merge pull request #10979 from tellowkrinkle/QuartzWindowSpeed 2022-10-22 04:55:12 -04:00
MacUpdater WinUpdater: Check OS and VC++ Redist versions. 2022-09-20 15:57:50 -07:00
UICommon Merge pull request #11051 from shuffle2/update-vcredist 2022-10-21 13:55:51 -04:00
UpdaterCommon WinUpdater: Check OS and VC++ Redist versions. 2022-09-20 15:57:50 -07:00
VideoBackends Merge pull request #11122 from K0bin/descriptor-overhaul 2022-10-17 04:25:35 +02:00
VideoCommon Merge pull request #10859 from tellowkrinkle/UniformBufferSize 2022-10-20 17:13:31 -04:00
WinUpdater WinUpdater: Check OS and VC++ Redist versions. 2022-09-20 15:57:50 -07:00
CMakeLists.txt CMakeLists: Add option to disable automatic update support 2022-03-18 03:04:51 -04:00
DolphinLib.ARM64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.props Merge pull request #11072 from SketchMaster2001/wiiconnect24 2022-10-16 04:31:28 +02:00
DolphinLib.vcxproj WinUpdater: Check OS and VC++ Redist versions. 2022-09-20 15:57:50 -07:00
DolphinLib.vcxproj.user msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00
DolphinLib.x64.props msbuild: use default Project attrs 2022-04-27 15:26:43 -07:00