mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
Merge pull request #6849 from leoetlino/oops
WiiSave: Fix out-of-bounds read
This commit is contained in:
commit
f8e5e7126c
@ -468,7 +468,7 @@ void WiiSave::do_sig()
|
||||
|
||||
data_file.WriteArray(ap_sig.data(), ap_sig.size());
|
||||
const u32 SIGNATURE_END_MAGIC = Common::swap32(0x2f536969);
|
||||
data_file.WriteArray(&SIGNATURE_END_MAGIC, sizeof(SIGNATURE_END_MAGIC));
|
||||
data_file.WriteArray(&SIGNATURE_END_MAGIC, 1);
|
||||
const IOS::Certificate device_certificate = m_ios.GetIOSC().GetDeviceCertificate();
|
||||
data_file.WriteArray(device_certificate.data(), device_certificate.size());
|
||||
data_file.WriteArray(ap_cert.data(), ap_cert.size());
|
||||
|
Loading…
Reference in New Issue
Block a user