mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Fixup for SPU Debug mode (bad SHA1)
Should fix crashes due to read out of bounds.
This commit is contained in:
parent
5ba8daf518
commit
05d1b3605e
@ -567,7 +567,7 @@ void spu_cache::initialize()
|
||||
u8 output[20];
|
||||
|
||||
sha1_starts(&ctx);
|
||||
sha1_update(&ctx, bytes.data(), bytes.size() * sizeof(u32));
|
||||
sha1_update(&ctx, bytes.data(), bytes.size());
|
||||
sha1_finish(&ctx, output);
|
||||
fmt::append(dump, "\n\t[%s] ", fmt::base57(output));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user