From e9c91daba76fbfed898041eb3215a04fe113399f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 20 Feb 2021 07:03:40 +0000 Subject: [PATCH] [dxvk] Fix out of bounds read when uploading HUD texture The width + height does not add up to the size of the global array. --- src/dxvk/hud/dxvk_hud_font.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dxvk/hud/dxvk_hud_font.cpp b/src/dxvk/hud/dxvk_hud_font.cpp index 746019dd..ea7d4abb 100644 --- a/src/dxvk/hud/dxvk_hud_font.cpp +++ b/src/dxvk/hud/dxvk_hud_font.cpp @@ -1864,6 +1864,7 @@ namespace dxvk::hud { ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 + ,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; const HudFont g_hudFont = { 32, 510, 172, 5, 24, 95, g_hudFontGlyphs, g_hudFontImage };