Skip to content
Permalink
Browse files
Merge pull request #6093 from endrift/fix-efb-overflow
VideoCommon: Fix overflow trying to access outside of EFB bounds
  • Loading branch information
degasus committed Oct 26, 2017
2 parents 3f60173 + e0a326a commit 802fda2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -67,7 +67,7 @@ void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride,

u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
{
if (!g_ActiveConfig.bEFBAccessEnable)
if (!g_ActiveConfig.bEFBAccessEnable || x >= EFB_WIDTH || y >= EFB_HEIGHT)
{
return 0;
}

0 comments on commit 802fda2

Please sign in to comment.