yuzu/src
Lioncash e77337588e file_util: Early-exit in WriteArray and ReadArray if specified lengths are zero
It's undefined behavior to pass a null pointer to std::fread and
std::fwrite, even if the length passed in is zero, so we must perform
the precondition checking ourselves.

A common case where this can occur is when passing in the data of an
empty std::vector and size, as an empty vector will typically have a
null internal buffer.

While we're at it, we can move the implementation out of line and add
debug checks against passing in nullptr to std::fread and std::fwrite.
2020-04-15 14:43:37 -04:00
..
audio_core audio_core: Accept Audren REV8 2020-03-23 03:07:14 +01:00
common file_util: Early-exit in WriteArray and ReadArray if specified lengths are zero 2020-04-15 14:43:37 -04:00
core Merge pull request #3660 from bunnei/friend-blocked-users 2020-04-14 16:59:46 -04:00
input_common Merge pull request #3525 from FearlessTobi/linux-compile-error 2020-03-21 16:04:45 -04:00
tests core/memory: Migrate over memory mapping functions to the new Memory class 2019-11-26 21:53:34 -05:00
video_core Merge pull request #3662 from ReinUsesLisp/constant-attrs 2020-04-15 11:54:50 -04:00
web_service httplib compatibility 2020-02-18 18:04:33 -08:00
yuzu Merge pull request #3611 from FearlessTobi/port-4956 2020-04-11 12:44:36 -04:00
yuzu_cmd yuzu: Drop SDL2 and Qt frontend Vulkan requirements 2020-04-07 16:32:19 -03:00
yuzu_tester yuzu: Drop SDL2 and Qt frontend Vulkan requirements 2020-04-07 16:32:19 -03:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt CMake: Create thin archives on Linux 2020-01-19 12:52:09 +01:00