From 44eb6d8c5e944491c4443828d2fd769e228ee9d3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 12 Mar 2015 15:39:41 +0100 Subject: [PATCH] (XMB) xmb_get_userdata_from_core - if i is bigger than or equal to the 'size' of the info list, then return NULL as well --- menu/drivers/xmb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index f3cc8da3ff..9778383d19 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -736,6 +736,8 @@ static xmb_node_t* xmb_get_userdata_from_core(xmb_handle_t *xmb, int i) return NULL; if (!info_list->count) return NULL; + if (i >= info_list->count) + return NULL; info = (core_info_t*)&info_list->list[i];