1
0
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:
Nekotekina 2021-08-01 10:12:00 +03:00
parent 5ba8daf518
commit 05d1b3605e

View File

@ -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));
}