Fix invalid ptr memset in fsr2GetPermutationBlobByIndex
Fix an invalid ptr memset on empty blob case in fsr2GetPermutationBlobByIndex(), from wrong pointer indirection. This causes crashes from buffer overrun by writing and reading invalid memory. Thanks to Jason Gorski for fix.
This commit is contained in:
parent
2e6d42ad0a
commit
2f7b7977f9
|
@ -388,6 +388,6 @@ FfxErrorCode fsr2GetPermutationBlobByIndex(
|
|||
}
|
||||
|
||||
// return an empty blob
|
||||
memset(&outBlob, 0, sizeof(Fsr2ShaderBlobDX12));
|
||||
memset(outBlob, 0, sizeof(Fsr2ShaderBlobDX12));
|
||||
return FFX_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user