Update ffx_fsr2_shaders_dx12.cpp
Fixed buffer overrun. outBlob is a pointer so using &outBlob causes the memset to write 72 bytes to the 8 byte location of the pointer rather than the location of the struct pointed to by the pointer.
This commit is contained in:
parent
2e6d42ad0a
commit
17ef5342e8
|
@ -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