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:
BBI-JohnwillKeating 2022-07-27 18:27:53 -07:00 committed by GitHub
parent 2e6d42ad0a
commit 17ef5342e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -388,6 +388,6 @@ FfxErrorCode fsr2GetPermutationBlobByIndex(
}
// return an empty blob
memset(&outBlob, 0, sizeof(Fsr2ShaderBlobDX12));
memset(outBlob, 0, sizeof(Fsr2ShaderBlobDX12));
return FFX_OK;
}