diff options
| author | BoiledElectricity <james.dellamorte@gmail.com> | 2026-06-15 03:02:53 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-06-15 03:02:53 +0200 |
| commit | ef4113aeaade8a7055fbedb386837554aead254f (patch) | |
| tree | bd8dd1e12d645decb3c3f3633e4c117a5d1c6265 /src/video_core/shader_environment.cpp | |
| parent | 78a1cd0533fd4b6d5be77f9f6f2a87ca6b509d03 (diff) | |
[video_core] fix TOCTOU in Vulkan instance extension enumeration (#4072)
So CreateInstance was enumerating instance extensions twice, and that could race if the driver returned a different list the second time. On some AMD iGPU drivers, we could enable an extension from the first list, then fail the second check with VK_ERROR_EXTENSION_NOT_PRESENT.
Fix this by enumerating once and passing that same snapshot into RequiredExtensions.
Fixes: https://github.com/eden-emulator/Issue-Reports/issues/414
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4072
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/video_core/shader_environment.cpp')
0 files changed, 0 insertions, 0 deletions
