mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fixes for memory leaks and out of bounds memory access found by ASAN or gcc -flto
This commit is contained in:
parent
bb70cc6e66
commit
a20300bf1e
8 changed files with 27 additions and 12 deletions
|
@ -107,7 +107,7 @@ void Cz80_Init(cz80_struc *CPU)
|
|||
|
||||
for (i = 0; i < CZ80_FETCH_BANK; i++)
|
||||
{
|
||||
CPU->Fetch[i] = (FPTR)cz80_bad_address;
|
||||
CPU->Fetch[i] = (FPTR)cz80_bad_address - (i << CZ80_FETCH_SFT);
|
||||
#if CZ80_ENCRYPTED_ROM
|
||||
CPU->OPFetch[i] = 0;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue