summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/ControlReference.cpp
diff options
context:
space:
mode:
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>2024-08-27 17:59:14 +0200
committerFerdinand Bachmann <ferdinand.bachmann@yrlf.at>2024-08-27 18:16:43 +0200
commit6245dcd57d3cb78aa1d9fdbf53832716478396ca (patch)
tree421a6b8db598ed4c95aa27ef16ad96d8888d7fb1 /Source/Core/InputCommon/ControlReference/ControlReference.cpp
parent27c71017fadd7c263acf193341075221f5cb9bb6 (diff)
RVZ: Fix undefined behaviour when copying 0 bytes to a null pointer
A vector of length 0 can have a null data pointer, which causes UB when passed to memcpy, so only copy when we actually have data to copy. This caused crashes in certain cases when compiling Dolphin with Clang and LTO enabled.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ControlReference.cpp')
0 files changed, 0 insertions, 0 deletions