mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12: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
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ void spu_cache::initialize()
|
||||||
u8 output[20];
|
u8 output[20];
|
||||||
|
|
||||||
sha1_starts(&ctx);
|
sha1_starts(&ctx);
|
||||||
sha1_update(&ctx, bytes.data(), bytes.size() * sizeof(u32));
|
sha1_update(&ctx, bytes.data(), bytes.size());
|
||||||
sha1_finish(&ctx, output);
|
sha1_finish(&ctx, output);
|
||||||
fmt::append(dump, "\n\t[%s] ", fmt::base57(output));
|
fmt::append(dump, "\n\t[%s] ", fmt::base57(output));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue