From 9d9394662b5f11b8ef78a681ae5b7bd9015dd435 Mon Sep 17 00:00:00 2001 From: Mike Robinson Date: Sat, 18 Oct 2014 18:29:37 +0100 Subject: [PATCH] Fix buffer overflow in dummy_pixels Size needs to be 32 to allow for 4x4 at pitch 8 --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 1a4742d517..aa5f9e4054 100644 --- a/driver.c +++ b/driver.c @@ -1118,7 +1118,7 @@ static void init_video_input(void) const input_driver_t *tmp = NULL; const struct retro_game_geometry *geom = NULL; video_info_t video = {0}; - static uint16_t dummy_pixels[16] = {0}; + static uint16_t dummy_pixels[32] = {0}; init_video_filter(g_extern.system.pix_fmt); rarch_main_command(RARCH_CMD_SHADER_DIR_INIT);