mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-23 16:29:41 +00:00
Fix out-of-bounds memory access. (Sour via byuu)
This commit is contained in:
parent
27314dc6bc
commit
b091b90547
@ -751,7 +751,7 @@ MISC_CLOCK( 30 )
|
|||||||
|
|
||||||
inline VOICE_CLOCK( V1 )
|
inline VOICE_CLOCK( V1 )
|
||||||
{
|
{
|
||||||
m.t_dir_addr = m.t_dir * 0x100 + m.t_srcn * 4;
|
m.t_dir_addr = (m.t_dir * 0x100 + m.t_srcn * 4) & 0xffff;
|
||||||
m.t_srcn = VREG(v->regs,srcn);
|
m.t_srcn = VREG(v->regs,srcn);
|
||||||
}
|
}
|
||||||
inline VOICE_CLOCK( V2 )
|
inline VOICE_CLOCK( V2 )
|
||||||
|
Loading…
Reference in New Issue
Block a user